OSDN Git Service

torture: Use file-based protocol to mark batch's runs complete
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 11 Feb 2021 00:28:44 +0000 (16:28 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 8 Mar 2021 22:23:01 +0000 (14:23 -0800)
commitb674100e630bf9211d7edce06b5d734b125a74ee
treea2e147cc07b6148ad67d7e2c2ddc8db9e1e52bb5
parent3c43ce53fdb39921f4ee71c65dc100296e15640f
torture: Use file-based protocol to mark batch's runs complete

Currently, the script generated by kvm.sh does a "wait" to wait on both
the current batch's guest OSes and any jitter.sh scripts.  This works,
but makes it hard to abstract the jittering so that common code can be
used for both local and distributed runs.  This commit therefore uses
"build.run" files in scenario directories, and these files are removed
after the corresponding scenario's guest OS has completed.

Note that --build-only runs do not create build.run files because they
also do not create guest OSes and do not run any jitter.sh scripts.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
tools/testing/selftests/rcutorture/bin/kvm.sh