]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkswap: (tests) don't overwrite logfiles
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 28 Apr 2023 18:32:00 +0000 (20:32 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 11 May 2023 10:09:56 +0000 (12:09 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/ts/mkswap/mkswap

index 2fa3e0ae9939ccc62084347f2caf470085f85931..bed7941899cbfbde6c53f72a6922df578ab891f5 100755 (executable)
@@ -50,14 +50,14 @@ for PAGESIZE in 4096 8192; do
                ts_init_subtest $name
 
                rm -f "$outimg"
-               truncate -s $(( PAGESIZE * 10 )) "$outimg" > $TS_ERRLOG 2>&1
+               truncate -s $(( PAGESIZE * 10 )) "$outimg" >> $TS_ERRLOG 2>&1
 
                "$TS_CMD_MKSWAP" -q -L label -U "$UUID" -e "$ENDIANNESS" -p "$PAGESIZE" "$outimg" \
-                       > "$TS_OUTPUT" 2>/dev/null \
+                       >> "$TS_OUTPUT" 2>/dev/null \
                        || ts_log "mkswap failed"
                xz -dc "$TS_SELF/${BYTE_ORDER}-${PAGESIZE}.img.xz" > "$origimg"
 
-               cmp "$origimg" "$outimg" > "$TS_ERRLOG" 2>&1
+               cmp "$origimg" "$outimg" >> "$TS_ERRLOG" 2>&1
 
                ts_finalize_subtest
        done