Skip to content

Commit fa70e60

Browse files
committed
fixup! rcutorture: Avoid torture.sh compressing identical files
1 parent 00c153b commit fa70e60

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,16 +587,18 @@ then
587587
wait
588588
if test -s $T/xz-todo-copy
589589
then
590+
# The trick here is that we need corresponding
591+
# vmlinux files from corresponding scenarios.
590592
echo Linking vmlinux.xz files to re-use scenarios `date` | tee -a "$tdir/log-xz" | tee -a $T/log
591593
dirstash="`pwd`"
592594
for i in `cat $T/xz-todo-copy`
593595
do
594596
cd $i
595-
find "$i" -name vmlinux -print > $T/xz-todo-copy-vmlinux
597+
find . -name vmlinux -print > $T/xz-todo-copy-vmlinux
596598
for v in `cat $T/xz-todo-copy-vmlinux`
597599
do
598600
rm -f "$v"
599-
cp -l "$i/$v".xz "`dirname "$v"`"
601+
cp -l `cat $i/re-run`/"$i/$v".xz "`dirname "$v"`"
600602
done
601603
cd "$dirstash"
602604
done

0 commit comments

Comments
 (0)