]> granicus.if.org Git - sysstat/commitdiff
simtest: Fix false positive test result
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 30 Sep 2019 09:07:53 +0000 (11:07 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 30 Sep 2019 09:07:53 +0000 (11:07 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
tests/00220
tests/TLIST

index 180e6ad18d0529872a6792b0fce2c75f3860a44d..7908fd4f1eeb70606dcf6618db022ffa02925c6f 100644 (file)
@@ -6,4 +6,4 @@ then
        mv tests/sa18 tests/sa${DATE}
 fi
 echo sa2: File is sa${DATE}
-LC_ALL=C TZ=GMT ./sa2 -A && mv tests/sar${DATE} tests/out.sa2.tmp
+LC_ALL=C TZ=GMT ./sa2 -A && mv tests/sar${DATE} tests/out.sa2.tmp && rm -f tests/sa${DATE}
index b1f5c9c65ad7da1e66b8fa25daddbd2b750c5cd5..b50185442f88ac5ba5dcaac18cf1aaa8554a5246 100644 (file)
@@ -41,7 +41,7 @@ NOTES:
 00200  ./sa1 --boot; ./sa1 --unix_time=1555593629 1 1; ./sa1 --unix_time=1555593649 1 1
 00205  LC_ALL=C TZ=GMT ./sar -f tests/sa18 > tests/out.sa1.tmp
 00208  diff -u tests/out.sa1.tmp tests/expected.sa1
-00220  LC_ALL=C TZ=GMT ./sa2 -A && mv tests/sar${DATE} tests/out.sa2.tmp
+00220  LC_ALL=C TZ=GMT ./sa2 -A && mv tests/sar${DATE} tests/out.sa2.tmp && rm -f tests/sa${DATE}
 00225  diff -u tests/out.sa2.tmp tests/expected.sa2
 
 =====  Checking JSON output validity