Browse Source

test(flake): refactor setting unix epoch

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 years ago
parent
commit
4dc4689bb7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      flake.nix

+ 2 - 2
flake.nix

@@ -119,7 +119,7 @@
             # buildPhase files differ between dep and main phase
             singleStep = true;
             # set itests files creation date to unix epoch
-            buildPhase = ''cd tests/itest; touch --date=@0 *'';
+            buildPhase = ''touch --date=@0 tests/itest/*'';
             cargoTestOptions = opts: opts ++ [ "--features nix" ];
             inherit buildInputs;
           };
@@ -134,7 +134,7 @@
             # buildPhase files differ between dep and main phase
             singleStep = true;
             # set itests files creation date to unix epoch
-            buildPhase = ''cd tests/itest; touch --date=@0 *'';
+            buildPhase = ''touch --date=@0 tests/itest/*'';
             cargoTestOptions = opts: opts ++ [ "--features nix" ];
             TRYCMD="dump";
             postInstall = ''