From 641ae9fa27c3ebf9130868b974067d873097cb7f Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 14 Jun 2023 13:58:02 -0400 Subject: [PATCH] test.sh: check for NixOS --- test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index f4198dc..58ea964 100755 --- a/test.sh +++ b/test.sh @@ -7,4 +7,6 @@ cd ./example nix build -L --no-link --print-out-paths --override-input process-compose-flake .. # On NixOS, run the VM tests to test runtime behaviour -nix flake check -L --override-input process-compose-flake .. +if command -v nixos-rebuild &> /dev/null; then + nix flake check -L --override-input process-compose-flake .. +fi