]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
torture: Include commit discription in testid.txt
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Dec 2025 19:13:58 +0000 (11:13 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Thu, 1 Jan 2026 08:44:37 +0000 (16:44 +0800)
Currently, the testid.txt file in the top-level directory of the
rcutorture results contains the output of "git rev-parse HEAD", which
just gives the full SHA-1 of the current commit.  This is followed by
the output of "git status", which is further followed by the output of
"git diff".  This works, but is less than helpful to human readers
scanning a list of commits.

This commit therefore instead uses "git show --oneline --no-patch HEAD",
which provides a short SHA-1, but also the names of any branches and
the commit's title.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
tools/testing/selftests/rcutorture/bin/mktestid.sh

index 16f9907a4dae0b4df236645405726d9de1ec50ea..24f6261dab6ab8d05f8bf41878d24176f1518fa5 100755 (executable)
@@ -18,7 +18,7 @@ fi
 echo Build directory: `pwd` > ${resdir}/testid.txt
 if test -d .git
 then
-       echo Current commit: `git rev-parse HEAD` >> ${resdir}/testid.txt
+       echo Current commit: `git show --oneline --no-patch HEAD` >> ${resdir}/testid.txt
        echo >> ${resdir}/testid.txt
        echo ' ---' Output of "'"git status"'": >> ${resdir}/testid.txt
        git status >> ${resdir}/testid.txt