tests: minor simplification in test-execute

No functional change.
This commit is contained in:
Franck Bui
2022-11-04 12:53:17 +01:00
parent d723b0467d
commit 09415aef94
9 changed files with 15 additions and 15 deletions
@@ -3,7 +3,7 @@
Description=Test DynamicUser with User=
[Service]
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 'for g in $$(id -G); do test "$$g" = "1" && exit 0; done; exit 1'
ExecStart=/bin/sh -x -c 'test "$$(id -g)" = "1" && test "$$(id -u)" = "1"'
Type=oneshot
User=1