summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-supplementarygroups-single-group-user.service
diff options
context:
space:
mode:
authorDavide Cavalca <dcavalca@fb.com>2018-10-11 10:45:43 -0700
committerLennart Poettering <lennart@poettering.net>2018-10-11 22:24:03 +0200
commitccac62563e1bc8d047c6c967a4c86999edf3b587 (patch)
tree7d44214cc3f73e45eefa72cc8db9b8104126e4c4 /test/test-execute/exec-supplementarygroups-single-group-user.service
parent958b8c7bd7a3cf1e710faf8c19a528cc94c214fe (diff)
downloadsystemd-ccac62563e1bc8d047c6c967a4c86999edf3b587.tar.gz
tests: fix fallthrough condition for supplementary groups
Diffstat (limited to 'test/test-execute/exec-supplementarygroups-single-group-user.service')
-rw-r--r--test/test-execute/exec-supplementarygroups-single-group-user.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-execute/exec-supplementarygroups-single-group-user.service b/test/test-execute/exec-supplementarygroups-single-group-user.service
index 97f9f9c786..405c5f9bfe 100644
--- a/test/test-execute/exec-supplementarygroups-single-group-user.service
+++ b/test/test-execute/exec-supplementarygroups-single-group-user.service
@@ -2,7 +2,7 @@
Description=Test for Supplementary Group with only one group and uid 1
[Service]
-ExecStart=/bin/sh -x -c 'HAVE=; for g in $$(id -G); do test "$$g" = "1" && HAVE=1; done; test "$$HAVE" -eq 1'
+ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "1" && HAVE=1; done; test "$$HAVE" -eq 1'
ExecStart=/bin/sh -x -c 'test "$$(id -g)" = "1" && test "$$(id -u)" = "1"'
Type=oneshot
User=1