kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject kudu git commit: run-test.sh: don't emit an error when used directly
Date Wed, 21 Mar 2018 22:56:31 GMT
Repository: kudu
Updated Branches:
  refs/heads/master 0fa3cc7cd -> 541dd5f6a


run-test.sh: don't emit an error when used directly

I was seeing:

  build-support/run-test.sh: line 67: [: : integer expression expected

Change-Id: I6da008c8ace6148030f3395df6324d6bb7514d24
Reviewed-on: http://gerrit.cloudera.org:8080/9735
Tested-by: Kudu Jenkins
Reviewed-by: Todd Lipcon <todd@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/541dd5f6
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/541dd5f6
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/541dd5f6

Branch: refs/heads/master
Commit: 541dd5f6aadbfd31eb0c2dbdf070ff5038140b06
Parents: 0fa3cc7
Author: Adar Dembo <adar@cloudera.com>
Authored: Wed Mar 21 11:27:10 2018 -0700
Committer: Todd Lipcon <todd@apache.org>
Committed: Wed Mar 21 22:54:38 2018 +0000

----------------------------------------------------------------------
 build-support/run-test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/541dd5f6/build-support/run-test.sh
----------------------------------------------------------------------
diff --git a/build-support/run-test.sh b/build-support/run-test.sh
index 93c9cd6..dd91c1e 100755
--- a/build-support/run-test.sh
+++ b/build-support/run-test.sh
@@ -64,7 +64,7 @@ shift
 SHORT_TEST_NAME=$(echo $TEST_FILENAME | perl -pe 's/\..+?$//')
 
 # The full test name does include the shard number if the test is sharded.
-if [ "$GTEST_TOTAL_SHARDS" -gt 1 ]; then
+if [ ${GTEST_TOTAL_SHARDS:-0} -gt 1 ]; then
   TEST_NAME=${SHORT_TEST_NAME}.${GTEST_SHARD_INDEX:?}
 else
   TEST_NAME=${SHORT_TEST_NAME}


Mime
View raw message