]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (hardlink) remove runtime depend output
authorKarel Zak <kzak@redhat.com>
Wed, 8 Jun 2022 09:50:04 +0000 (11:50 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jun 2022 09:50:04 +0000 (11:50 +0200)
The Method: field depends on kernel crypto support, otherwise hardlink
falls back to memcpy().

Fixes: https://github.com/util-linux/util-linux/issues/1710
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/hardlink/options-maximum-size-8191
tests/expected/hardlink/options-maximum-size-8192
tests/ts/hardlink/options

index 30fe1acad463566705d992d8f52ce9aaf8c36d5b..d57c92ae94162301c23abe8cb5324431125f2819 100644 (file)
@@ -1,6 +1,6 @@
 Number of test files: 26
 Mode:                     real
-Method:                   sha256
+Method: [Redacted]
 Files:                    26
 Linked:                   0 files
 Compared:                 0 xattrs
index 723811e9ee81ff463fdb8041fccafa6da26c902d..c571adf52d406ea542922d90389c1ec008d9118a 100644 (file)
@@ -1,6 +1,6 @@
 Number of test files: 26
 Mode:                     real
-Method:                   sha256
+Method: [Redacted]
 Files:                    26
 Linked:                   18 files
 Compared:                 0 xattrs
index fc1a0d65257f3d5799242cc9f795f92f5709b9a0..2a1c919a2832b3b14dc8e6548a8eb6a7da2b50c4 100755 (executable)
@@ -40,6 +40,14 @@ show_srcdir()
        find "$SRCDIR" -type f -printf "%P\t%n\t%s\t%Ts\t%m\n" | sort
 }
 
+summary_clean()
+{
+       sed -i \
+               -e 's/^Duration:.*/Duration: [Redacted]/' \
+               -e 's/^Method:.*/Method: [Redacted]/' \
+               $TS_OUTPUT
+}
+
 create_srcdir
 
 ts_init_subtest "orig" # just list original dir
@@ -80,16 +88,16 @@ ts_finalize_subtest
 ts_init_subtest "maximum-size-8191"
 create_srcdir
 echo "Number of test files: $(find "$SRCDIR" -type f | wc -l)" >> $TS_OUTPUT
-$TS_CMD_HARDLINK --maximum-size 8191 "$SRCDIR" | \
-       sed 's/^Duration:.*/Duration: [Redacted]/' >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_HARDLINK --maximum-size 8191 "$SRCDIR" >> $TS_OUTPUT 2>> $TS_ERRLOG
+summary_clean
 show_srcdir >> $TS_OUTPUT 2>> $TS_ERRLOG
 ts_finalize_subtest
 
 ts_init_subtest "maximum-size-8192"
 create_srcdir
 echo "Number of test files: $(find "$SRCDIR" -type f | wc -l)" >> $TS_OUTPUT
-$TS_CMD_HARDLINK --maximum-size 8192 "$SRCDIR" | \
-       sed 's/^Duration:.*/Duration: [Redacted]/' >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_HARDLINK --maximum-size 8192 "$SRCDIR" >> $TS_OUTPUT 2>> $TS_ERRLOG
+summary_clean
 show_srcdir >> $TS_OUTPUT 2>> $TS_ERRLOG
 ts_finalize_subtest