Skip to content

Commit 771497c

Browse files
author
Tiago Alves
committed
WL#11551 Add INFO_* files as part of test run results
For testsuites that reside in different repositories it's important to keep track of their commit information such that one can relate testsuite run results with the testsuite changes. This change allows any file with the prefix INFO_ to be copied to the test results folder allowing, for instance, files called INFO_TESTSUITE or INFO_SRC.SOME_NAME.
1 parent 9d80c26 commit 771497c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

storage/ndb/test/run-test/autotest-run.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
##############
2727

2828
save_args=$*
29-
VERSION="autotest-run.sh version 1.11"
29+
VERSION="autotest-run.sh version 1.12"
3030

3131
DATE=`date '+%Y-%m-%d'`
3232
if [ `uname -s` != "SunOS" ]
@@ -363,10 +363,14 @@ then
363363
else
364364
echo "clonename=$clone0" >> info.txt
365365
fi
366-
for f in INFO_BIN INFO_SRC ; do
367-
[ ! -f "${install_dir0}/docs/${f}" ] || cp "${install_dir0}/docs/${f}" "${f}.0"
368-
[ ! -f "${install_dir1}/docs/${f}" ] || cp "${install_dir1}/docs/${f}" "${f}.1"
366+
for f in $(find "${install_dir0}/docs" -name 'INFO_*'); do
367+
cp "${f}" "$(basename ${f}).0"
369368
done
369+
if [ -d "${install_dir1}/docs" ]; then
370+
for f in $(find "${install_dir1}/docs" -name 'INFO_*'); do
371+
cp "${f}" "$(basename ${f}).1"
372+
done
373+
fi
370374
find . | xargs chmod ugo+r
371375

372376
# Try to pack and transfer as much as possible

0 commit comments

Comments
 (0)