summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-supplementarygroups-multiple-groups-withgid.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-multiple-groups-withgid.service
parent958b8c7bd7a3cf1e710faf8c19a528cc94c214fe (diff)
downloadsystemd-ccac62563e1bc8d047c6c967a4c86999edf3b587.tar.gz
tests: fix fallthrough condition for supplementary groups
Diffstat (limited to 'test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service')
-rw-r--r--test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service b/test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service
index 45bcf79222..b7feedff61 100644
--- a/test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service
+++ b/test/test-execute/exec-supplementarygroups-multiple-groups-withgid.service
@@ -2,9 +2,9 @@
Description=Test for Supplementary Group with multiple groups and Group=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=; for g in $$(id -G); do test "$$g" = "2" && HAVE=1; done; test "$$HAVE" -eq 1'
-ExecStart=/bin/sh -x -c 'HAVE=; for g in $$(id -G); do test "$$g" = "3" && 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 'HAVE=0; for g in $$(id -G); do test "$$g" = "2" && HAVE=1; done; test "$$HAVE" -eq 1'
+ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "3" && HAVE=1; done; test "$$HAVE" -eq 1'
ExecStart=/bin/sh -x -c 'test "$$(id -g)" = "1" && test "$$(id -u)" = "0"'
Type=oneshot
Group=1