Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53506361 authored by MarkDacek's avatar MarkDacek Committed by Mark Dacek
Browse files

Squelch output for a failure case in mixed_mode_test

Currently, the expected output shows as the main text for
unrelated presubmit failures.
Bug: 278748024
Test: build/soong/tests/mixed_mode_test.sh

Change-Id: I553a82597c7c7791a822e330eb9b2663f35567a1
parent fdef3506
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
#!/bin/bash -eu
#!/bin/bash

set -o pipefail

@@ -88,9 +88,9 @@ 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
}