Skip to content

Commit 8be7f50

Browse files
committed
rcutorture: Note diffs from git commits
The current scripting only keeps track of the git SHA-1 of the current HEAD. This can cause confusion in cases where testing ran in a git tree where changes had not yet been checked in. This commit therefore also records the output of "git diff HEAD" to provide the information needed to reconstruct the source tree that was tested. Signed-off-by: Paul E. McKenney <[email protected]> Reviewed-by: Josh Triplett <[email protected]>
1 parent 424c1b6 commit 8be7f50

File tree

1 file changed

+4
-0
lines changed
  • tools/testing/selftests/rcutorture/bin

1 file changed

+4
-0
lines changed

tools/testing/selftests/rcutorture/bin/kvm.sh

+4
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ if test -d .git
276276
then
277277
git status >> $resdir/$ds/testid.txt
278278
git rev-parse HEAD >> $resdir/$ds/testid.txt
279+
if ! git diff HEAD > $T/git-diff 2>&1
280+
then
281+
cp $T/git-diff $resdir/$ds
282+
fi
279283
fi
280284
___EOF___
281285
awk < $T/cfgcpu.pack \

0 commit comments

Comments
 (0)