Skip to content

Commit 5bef49f

Browse files
committed
TEST/MINOR: set_uid: fix set_uid test to match regexp
1 parent 16740e2 commit 5bef49f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

e2e/tests/set_uid/test.bats

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ teardown() {
6262
}
6363

6464
@test "set_uid: check if running user is testuiduser for dataplane" {
65-
PS=$(dpa_docker_exec "ps -eo ruser,user,comm | grep dataplaneapi")
66-
echo $PS
67-
[ "${PS}" = "testuid+ testuid+ dataplaneapi" ]
65+
run dpa_docker_exec "ps -eo ruser,user,comm | grep dataplaneapi"
66+
assert_output --regexp '^testuid.* testuid.* dataplaneapi$'
6867
}

0 commit comments

Comments
 (0)