aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/unittest.bash
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2015-04-13 15:22:23 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2015-04-14 14:30:28 +0000
commitf5c6097be39e38822b48a685547fbefca47b6f14 (patch)
treeac81a74684297c9f3c2d612f0abd775730d3793d /src/test/shell/unittest.bash
parent3c380eb68aca20791a2c12dd2ccb140ef56c0931 (diff)
Enable test sharding for bazel_example_test
Test sharding run the same "bazel" test in parallel. The unittest.bash framework then distribute the test functions equally on the various shard. -- MOS_MIGRATED_REVID=90990754
Diffstat (limited to 'src/test/shell/unittest.bash')
-rw-r--r--src/test/shell/unittest.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/shell/unittest.bash b/src/test/shell/unittest.bash
index 0a86ef3b45..b33b790465 100644
--- a/src/test/shell/unittest.bash
+++ b/src/test/shell/unittest.bash
@@ -390,7 +390,7 @@ function __update_shards() {
TESTS=$(for test in "${TESTS[@]}"; do echo "$test"; done |
awk "NR % $TEST_TOTAL_SHARDS == $TEST_SHARD_INDEX")
- [ -n "$TEST_SHARD_STATUS_FILE" ] && touch "$TEST_SHARD_STATUS_FILE"
+ [ -z "${TEST_SHARD_STATUS_FILE-}" ] || touch "$TEST_SHARD_STATUS_FILE"
}
# Usage: __test_terminated <signal-number>