提交 6f414b14 编写于 作者: E Eric Huss

Fix update-references for tests within subdirectories.

上级 e3d8fc50
...@@ -36,10 +36,11 @@ shopt -s nullglob ...@@ -36,10 +36,11 @@ shopt -s nullglob
while [[ "$1" != "" ]]; do while [[ "$1" != "" ]]; do
for EXT in "stderr" "stdout"; do for EXT in "stderr" "stdout"; do
for OUT_NAME in $BUILD_DIR/${1%.rs}*/*$EXT; do for OUT_NAME in $BUILD_DIR/${1%.rs}*/*$EXT; do
OUT_DIR=`dirname "$1"`
OUT_BASE=`basename "$OUT_NAME"` OUT_BASE=`basename "$OUT_NAME"`
if ! (diff $OUT_NAME $MYDIR/$OUT_BASE >& /dev/null); then if ! (diff $OUT_NAME $MYDIR/$OUT_DIR/$OUT_BASE >& /dev/null); then
echo updating $MYDIR/$OUT_BASE echo updating $MYDIR/$OUT_DIR/$OUT_BASE
cp $OUT_NAME $MYDIR cp $OUT_NAME $MYDIR/$OUT_DIR
fi fi
done done
done done
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册