From bab9aa46a90a6be42fabdec8b22f3294c1ad4949 Mon Sep 17 00:00:00 2001 From: nzbr Date: Fri, 25 Nov 2022 19:17:05 +0100 Subject: Add CI Tests (#161) * use systemd-run instead of machinectl * fix systemd user sessions by launching through runuser * skip mounting binfmt_misc if the kernel lacks support for it * link syschdemd/installer to static location * make check happy * test tests * add a simple installer test * add second test for exit codes * make tests responsible for checking exit code * fix: add which to path * overhaul actions workflow * move checks out of flake.nix * use GUID for image name * Split flake checks into matrix job * Check for side-effects * reformat powershell scripts * extend basic test * use pester for tests * "fix" (purposefully) failing test * rename lib -> init * Add test for systemd --user * Add test for docker-native * move release to separate workflow * change downstream workflow path * switch to a class * Test running with different user shells * Add lib implementation for Windows * Add documentation for the tests * readme: docker permissions * remove empty files --- scripts/syschdemd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/syschdemd.sh') diff --git a/scripts/syschdemd.sh b/scripts/syschdemd.sh index 73adb40..a28ffcc 100644 --- a/scripts/syschdemd.sh +++ b/scripts/syschdemd.sh @@ -101,7 +101,7 @@ main() { start_systemd fi - if [ $# -gt 0 ]; then + if [ $# -gt 1 ]; then # Ignore just -c without a command # wsl seems to prefix with "-c" shift command="$*" -- cgit v1.2.3