File tree 1 file changed +16
-8
lines changed
1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,23 @@ retry () {
33
33
fi
34
34
}
35
35
36
- # set timezone to Alaska time (arbitrary timezone to test date logic)
37
- set_tz () {
38
- sudo cp /usr/share/zoneinfo/America/Anchorage /etc/localtime
39
- export TZ=' America/Anchorage'
36
+ set_timezone () {
37
+ # Alaska time (arbitrary timezone to test date logic)
38
+ TZ=" America/Anchorage"
39
+
40
+ echo " set timezone to $TZ "
41
+ sudo cp /usr/share/zoneinfo/$TZ /etc/localtime
42
+
43
+ echo " display date in timezone"
44
+ date
45
+
46
+ export TZ
40
47
}
41
48
42
49
case $1 in
43
50
44
51
no-gl-jasmine)
45
- set_tz
52
+ set_timezone
46
53
47
54
SUITE=$( circleci tests glob " $ROOT /test/jasmine/tests/*" | circleci tests split)
48
55
MAX_AUTO_RETRY=2
@@ -52,7 +59,7 @@ case $1 in
52
59
;;
53
60
54
61
webgl-jasmine)
55
- set_tz
62
+ set_timezone
56
63
57
64
SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split) )
58
65
for s in ${SHARDS[@]} ; do
@@ -64,7 +71,7 @@ case $1 in
64
71
;;
65
72
66
73
flaky-no-gl-jasmine)
67
- set_tz
74
+ set_timezone
68
75
69
76
SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --limit=1 --tag=flaky | circleci tests split) )
70
77
@@ -88,7 +95,8 @@ case $1 in
88
95
;;
89
96
90
97
jasmine-bundle)
91
- set_tz
98
+ set_timezone
99
+
92
100
npm run test-bundle || EXIT_STATE=$?
93
101
exit $EXIT_STATE
94
102
;;
You can’t perform that action at this time.
0 commit comments