test(flake): refactor setting unix epoch

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-09-12 13:45:56 +02:00
parent cf15877c2b
commit 4dc4689bb7
No known key found for this signature in database
GPG key ID: 26C542FD97F965CE

View file

@ -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 = ''