From ccac62563e1bc8d047c6c967a4c86999edf3b587 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Thu, 11 Oct 2018 10:45:43 -0700 Subject: tests: fix fallthrough condition for supplementary groups --- test/test-execute/exec-supplementarygroups-single-group-user.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test-execute/exec-supplementarygroups-single-group-user.service') 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 -- cgit v1.2.1