File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,23 @@ retry () {
3333 fi
3434}
3535
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
4047}
4148
4249case $1 in
4350
4451 no-gl-jasmine)
45- set_tz
52+ set_timezone
4653
4754 SUITE=$( circleci tests glob " $ROOT /test/jasmine/tests/*" | circleci tests split)
4855 MAX_AUTO_RETRY=2
@@ -52,7 +59,7 @@ case $1 in
5259 ;;
5360
5461 webgl-jasmine)
55- set_tz
62+ set_timezone
5663
5764 SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split) )
5865 for s in ${SHARDS[@]} ; do
@@ -64,7 +71,7 @@ case $1 in
6471 ;;
6572
6673 flaky-no-gl-jasmine)
67- set_tz
74+ set_timezone
6875
6976 SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --limit=1 --tag=flaky | circleci tests split) )
7077
@@ -88,7 +95,8 @@ case $1 in
8895 ;;
8996
9097 jasmine-bundle)
91- set_tz
98+ set_timezone
99+
92100 npm run test-bundle || EXIT_STATE=$?
93101 exit $EXIT_STATE
94102 ;;
You can’t perform that action at this time.
0 commit comments