From 4cf005d3959fdee5f78948164f22a0f0aff25173 Mon Sep 17 00:00:00 2001 From: Marian Csontos Date: Wed, 14 Jun 2023 13:23:41 +0200 Subject: [PATCH] tests: tmp is used for TMPDIR Fixes tests failing due to previous commit 734d9791f817. --- test/shell/pvck-dump.sh | 4 ++-- test/shell/pvscan-autoactivate.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/shell/pvck-dump.sh b/test/shell/pvck-dump.sh index 81e164d73..76da38d3e 100644 --- a/test/shell/pvck-dump.sh +++ b/test/shell/pvck-dump.sh @@ -100,8 +100,8 @@ grep "zero metadata copies" m4 diff m1 m2 diff m1 m3 -not diff m1 m3b > tmp -grep "metadata text at" tmp +not diff m1 m3b > out +grep "metadata text at" out lvcreate -an -l1 $vg diff --git a/test/shell/pvscan-autoactivate.sh b/test/shell/pvscan-autoactivate.sh index 297ceb96d..f57473104 100644 --- a/test/shell/pvscan-autoactivate.sh +++ b/test/shell/pvscan-autoactivate.sh @@ -169,9 +169,9 @@ _clear_online_files pvscan --cache -aay "$dev3" not ls "$RUNDIR/lvm/pvs_online/$PVID3" -lvs --foreign $vg2 > tmp -cat tmp -grep $lv2 tmp +lvs --foreign $vg2 > out +cat out +grep $lv2 out check lv_field $vg2/$lv2 lv_active "" --foreign fi