torture: Extract testid.txt generation to separate script
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 4 Jun 2025 01:03:53 +0000 (18:03 -0700)
committerNeeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
Wed, 16 Jul 2025 04:14:04 +0000 (09:44 +0530)
commit0783f216423fff1acafae3b464b95e05ac596e12
tree6ccfd242e62c061a650cf7d29161eae97ca16c21
parentce243b71cfef7e44401c8b2ca93cdc206f8393d4
torture: Extract testid.txt generation to separate script

The kvm.sh script places a testid.txt file in the top-level results
directory in order to identify the tree and commit that was tested.
This works well, but there are scripts other than kvm.sh that also create
results directories, and it would be good for them to also identify
exactly what was tested.

This commit therefore extracts the testid.txt generation to a new
mktestid.sh script so that it can be easily used elsewhere.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm.sh
tools/testing/selftests/rcutorture/bin/mktestid.sh [new file with mode: 0755]