* [PATCH] test-appliance: limit checkpointing to gce-xfstests only
@ 2017-05-01 17:04 Eric Biggers
2017-05-02 4:42 ` Theodore Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2017-05-01 17:04 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: fstests, Eric Biggers
From: Eric Biggers <ebiggers@google.com>
Results checkpointing by filesystem config, as introduced by
f3c85210f147 ("test-appliance: checkpoint fs configurations that are
completed") only really makes sense for gce-xfstests, which uses a new
results directory per GCE instance. It doesn't make sense for
kvm-xfstests and android-xfstests because the same results directory may
be reused for many different test runs, with different kernels and/or
different sets of tests. Therefore, for now limit the checkpointing to
gce-xfstests only.
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
kvm-xfstests/test-appliance/files/root/runtests.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/kvm-xfstests/test-appliance/files/root/runtests.sh b/kvm-xfstests/test-appliance/files/root/runtests.sh
index ec676a9..6544e1c 100755
--- a/kvm-xfstests/test-appliance/files/root/runtests.sh
+++ b/kvm-xfstests/test-appliance/files/root/runtests.sh
@@ -304,7 +304,8 @@ do
XFS_IO_AVOID="${XFS_IO_AVOID/# /}"
fi
echo $FS/$i > /run/fstest-config
- if grep -q "^$FS/$i\$" "$RESULTS/fstest-completed"
+ if test -n "$RUN_ON_GCE" && \
+ grep -q "^$FS/$i\$" "$RESULTS/fstest-completed"
then
echo "$FS/$i: already run"
/usr/local/lib/gce-logger already run
@@ -440,7 +441,9 @@ END { if (NR > 0) {
gce_run_hooks fs-config-end $i
umount "$TEST_DIR" >& /dev/null
umount "$SCRATCH_MNT" >& /dev/null
- cat /run/fstest-config >> "$RESULTS/fstest-completed"
+ if test -n "$RUN_ON_GCE" ; then
+ cat /run/fstest-config >> "$RESULTS/fstest-completed"
+ fi
echo -n "END TEST: $TESTNAME " ; date
logger "END TEST $i: $TESTNAME "
done
--
2.13.0.rc0.306.g87b477812d-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] test-appliance: limit checkpointing to gce-xfstests only
2017-05-01 17:04 [PATCH] test-appliance: limit checkpointing to gce-xfstests only Eric Biggers
@ 2017-05-02 4:42 ` Theodore Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2017-05-02 4:42 UTC (permalink / raw)
To: Eric Biggers; +Cc: fstests, Eric Biggers
On Mon, May 01, 2017 at 10:04:32AM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> Results checkpointing by filesystem config, as introduced by
> f3c85210f147 ("test-appliance: checkpoint fs configurations that are
> completed") only really makes sense for gce-xfstests, which uses a new
> results directory per GCE instance. It doesn't make sense for
> kvm-xfstests and android-xfstests because the same results directory may
> be reused for many different test runs, with different kernels and/or
> different sets of tests. Therefore, for now limit the checkpointing to
> gce-xfstests only.
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
Nice catch, thanks! Applied.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-02 4:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-01 17:04 [PATCH] test-appliance: limit checkpointing to gce-xfstests only Eric Biggers
2017-05-02 4:42 ` Theodore Ts'o
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.