aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/tarball.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/tarball.sh b/tests/functional/tarball.sh
index 6e621a28c..e59ee400e 100644
--- a/tests/functional/tarball.sh
+++ b/tests/functional/tarball.sh
@@ -18,7 +18,7 @@ test_tarball() {
local compressor="$2"
tarball=$TEST_ROOT/tarball.tar$ext
- (cd $TEST_ROOT && tar cf - tarball) | $compressor > $tarball
+ (cd $TEST_ROOT && GNUTAR_REPRODUCIBLE= tar --mtime=$tarroot/default.nix --owner=0 --group=0 --numeric-owner --sort=name -c -f - tarball) | $compressor > $tarball
nix-env -f file://$tarball -qa --out-path | grepQuiet dependencies