Skip to content

Commit

Permalink
fixup! rcutorture: Avoid torture.sh compressing identical files
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmckrcu committed Oct 19, 2022
1 parent 00c153b commit fa70e60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/testing/selftests/rcutorture/bin/torture.sh
Original file line number Diff line number Diff line change
Expand Up @@ -587,16 +587,18 @@ then
wait
if test -s $T/xz-todo-copy
then
# The trick here is that we need corresponding
# vmlinux files from corresponding scenarios.
echo Linking vmlinux.xz files to re-use scenarios `date` | tee -a "$tdir/log-xz" | tee -a $T/log
dirstash="`pwd`"
for i in `cat $T/xz-todo-copy`
do
cd $i
find "$i" -name vmlinux -print > $T/xz-todo-copy-vmlinux
find . -name vmlinux -print > $T/xz-todo-copy-vmlinux
for v in `cat $T/xz-todo-copy-vmlinux`
do
rm -f "$v"
cp -l "$i/$v".xz "`dirname "$v"`"
cp -l `cat $i/re-run`/"$i/$v".xz "`dirname "$v"`"
done
cd "$dirstash"
done
Expand Down

0 comments on commit fa70e60

Please sign in to comment.