summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2019-09-02 00:38:19 +0200
committerDavid Ostrovsky <david@ostrovsky.org>2019-09-02 00:38:58 +0200
commit402274a247a08b3468a8dee09337fadbe768b439 (patch)
treed8dc4ff5b0bf54ee7ac1de67b32c564170f326b8
parenta07a82420f8b26c7636877366a9fcb36722d1c69 (diff)
run_test.sh: Fix bazelisk location detection
In I4b5a32a15d WCT tests invocation was switched from bazel to bazelisk, but bazelisk location command was wrong. stderr and stdout was erroneously redirected to the /dev/null, so that the actual location of the bazelisk command was lost. Fix the location detection command by redirecting only stderr but not stdout to the null device. Change-Id: I66cb33e0074675e00b0e58bb11413b5151a57533
-rwxr-xr-xpolygerrit-ui/app/run_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/polygerrit-ui/app/run_test.sh b/polygerrit-ui/app/run_test.sh
index c45428c970..f450118bb5 100755
--- a/polygerrit-ui/app/run_test.sh
+++ b/polygerrit-ui/app/run_test.sh
@@ -12,7 +12,7 @@ if [[ -z "$npm_bin" ]]; then
exit 1
fi
-bazel_bin=$(which bazelisk >/dev/null 2>&1)
+bazel_bin=$(which bazelisk 2>/dev/null)
if [[ -z "$bazel_bin" ]]; then
echo "Warning: bazelisk is not installed; falling back to bazel."
bazel_bin=bazel