Skip to content

Commit

Permalink
Fix test_user_switched_to_root by only checking uid and gid are 0, the
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mzhaom authored and kchodorow committed Oct 9, 2015
1 parent 3cadf0a commit efb4590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/shell/bazel/namespace-runner_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit efb4590

Please sign in to comment.