Просмотр исходного кода

test(flake): refactor setting unix epoch

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 лет назад
Родитель
Сommit
4dc4689bb7
1 измененных файлов с 2 добавлено и 2 удалено
  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 = ''