Ninja support: use MAKE_CMD in run-backend-tests.sh when possible

Without this, buildall.sh -ninja fails to run the backend tests or
runs them with the Makefiles that were created when buildall.sh was
last run without the -ninja flag.

Change-Id: Idb920dd4b08d8ef5fbc0bf1ea1b424a0c544e1db
Reviewed-on: http://gerrit.cloudera.org:8080/6942
Reviewed-by: Tim Armstrong <[email protected]>
Tested-by: Impala Public Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/514e04ea
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/514e04ea
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/514e04ea

Branch: refs/heads/master
Commit: 514e04ea4ff3b7dc4225144b869616f2f92e4573
Parents: 0c8b2d3
Author: Jim Apple <[email protected]>
Authored: Sat May 20 16:22:01 2017 -0700
Committer: Impala Public Jenkins <[email protected]>
Committed: Mon May 22 04:51:19 2017 +0000

----------------------------------------------------------------------
 bin/run-backend-tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/514e04ea/bin/run-backend-tests.sh
----------------------------------------------------------------------
diff --git a/bin/run-backend-tests.sh b/bin/run-backend-tests.sh
index b07ce64..98630b0 100755
--- a/bin/run-backend-tests.sh
+++ b/bin/run-backend-tests.sh
@@ -41,4 +41,4 @@ export ASAN_OPTIONS="handle_segv=0 detect_leaks=0 
allocator_may_return_null=1"
 export UBSAN_OPTIONS="print_stacktrace=1"
 UBSAN_OPTIONS="${UBSAN_OPTIONS} 
suppressions=${IMPALA_HOME}/bin/ubsan-suppressions.txt"
 export PATH="${IMPALA_TOOLCHAIN}/llvm-${IMPALA_LLVM_VERSION}/bin:${PATH}"
-make test ARGS="${BE_TEST_ARGS}"
+"${MAKE_CMD:-make}" test ARGS="${BE_TEST_ARGS}"

Reply via email to