aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Ming Zhao <mzhao@luminatewireless.com>2015-10-09 17:31:02 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-10-09 18:05:05 +0000
commitefb45908bd2a1361f724a78b98b821c2b8c89b66 (patch)
tree164799d8c740010adc6a1adfca5ec5553286fe22
parent3cadf0a12cc3eb4fccb41666da34dd93f69ed64b (diff)
Fix test_user_switched_to_root by only checking uid and gid are 0, the
groups part of id command varies from Linux distribution. -- Change-Id: Ia8dbc0a645afe1a4b1558877e56d8b44fde7c386 Reviewed-on: https://bazel-review.googlesource.com/#/c/2111/ MOS_MIGRATED_REVID=105068270
-rwxr-xr-xsrc/test/shell/bazel/namespace-runner_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/shell/bazel/namespace-runner_test.sh b/src/test/shell/bazel/namespace-runner_test.sh
index 2b52012941..2810583f2c 100755
--- a/src/test/shell/bazel/namespace-runner_test.sh
+++ b/src/test/shell/bazel/namespace-runner_test.sh
@@ -100,7 +100,7 @@ function test_default_user_is_nobody() {
function test_user_switched_to_root() {
$WRAPPER $WRAPPER_DEFAULT_OPTS -r -l $OUT -L $ERR -- /usr/bin/id || fail
- assert_output "uid=0 gid=0 groups=65534,0" ""
+ assert_contains "uid=0 gid=0" "$OUT"
}
function test_network_namespace() {