From 4b38e12ffbd3d90f949608d705055b0975ccec13 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 22 Jun 2018 18:11:52 +0200 Subject: [PATCH] tests: set mtime to the epoch so it won't be different once added to OSTree. Signed-off-by: Giuseppe Scrivano --- tests/helpers.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/helpers.bash b/tests/helpers.bash index 528ad64dce..09fd9a5745 100755 --- a/tests/helpers.bash +++ b/tests/helpers.bash @@ -24,6 +24,8 @@ function teardown() { # Create a file "$1" with random contents of length $2, or 256. function createrandom() { dd if=/dev/urandom bs=1 count=${2:-256} of=${1:-${BATS_TMPDIR}/randomfile} status=none + # Set the mtime to the epoch so it won't be different once it is deduplicated with OSTree + touch -t 7001010000.00 ${1:-${BATS_TMPDIR}/randomfile} } # Run the CLI with the specified options.