Merge "Squelch output for a failure case in mixed_mode_test"

This commit is contained in:
Mark Dacek
2023-04-22 06:42:08 +00:00
committed by Gerrit Code Review

View File

@@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/bin/bash
set -o pipefail
@@ -88,12 +88,12 @@ EOF
fail "Bazel actions not found for force-enabled module"
fi
local exit_code=`run_soong --bazel-force-enabled-modules=unenabled-touch-file nothing`
unused=`run_soong --bazel-force-enabled-modules=unenabled-touch-file nothing >/dev/null`
if [[ $exit_code -ne 1 ]]; then
if [[ $? -ne 1 ]]; then
fail "Expected failure due to force-enabling an unenabled module "
fi
}
scan_and_run_tests
scan_and_run_tests