Selaa lähdekoodia

test(flake): fix trydump when no files to delete

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 vuotta sitten
vanhempi
sitoutus
d77c7cc5e6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      flake.nix

+ 1 - 1
flake.nix

@@ -134,7 +134,7 @@
             # buildPhase files differ between dep and main phase
             # buildPhase files differ between dep and main phase
             singleStep = true;
             singleStep = true;
             # set itests files creation date to unix epoch
             # set itests files creation date to unix epoch
-            buildPhase = ''touch --date=@0 tests/itest/*; rm tests/cmd/*.stdout; rm tests/cmd/*.stderr;'';
+            buildPhase = ''touch --date=@0 tests/itest/*; rm tests/cmd/*.stdout || echo; rm tests/cmd/*.stderr || echo;'';
             cargoTestOptions = opts: opts ++ [ "--features nix" ];
             cargoTestOptions = opts: opts ++ [ "--features nix" ];
             TRYCMD="dump";
             TRYCMD="dump";
             postInstall = ''
             postInstall = ''