Fix update-references for tests within subdirectories.
This commit is contained in:
parent
e3d8fc5044
commit
6f414b1408
1 changed files with 4 additions and 3 deletions
|
|
@ -36,10 +36,11 @@ shopt -s nullglob
|
|||
while [[ "$1" != "" ]]; do
|
||||
for EXT in "stderr" "stdout"; do
|
||||
for OUT_NAME in $BUILD_DIR/${1%.rs}*/*$EXT; do
|
||||
OUT_DIR=`dirname "$1"`
|
||||
OUT_BASE=`basename "$OUT_NAME"`
|
||||
if ! (diff $OUT_NAME $MYDIR/$OUT_BASE >& /dev/null); then
|
||||
echo updating $MYDIR/$OUT_BASE
|
||||
cp $OUT_NAME $MYDIR
|
||||
if ! (diff $OUT_NAME $MYDIR/$OUT_DIR/$OUT_BASE >& /dev/null); then
|
||||
echo updating $MYDIR/$OUT_DIR/$OUT_BASE
|
||||
cp $OUT_NAME $MYDIR/$OUT_DIR
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue