Skip to content

Commit 08287a5

Browse files
committed
Update CTestCostData.txt.
1 parent fb97ee8 commit 08287a5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/github-actions-test.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ ctest -j$halfproc --verbose
1717
STATUS=$?
1818
if [[ $STATUS != 0 ]]; then
1919
mkdir $GITHUB_WORKSPACE/failed-tests
20-
#cp -a Testing/Temporary/CTestCostData.txt $GITHUB_WORKSPACE/failed-tests/rr-test-ctestcostdata.txt
2120
cd /tmp
2221
rm rr-test-cpu-lock || true
2322
for dir in rr-test-*; do
@@ -28,4 +27,11 @@ if [[ $STATUS != 0 ]]; then
2827
done
2928
fi
3029

30+
# Retrieve ctest cost data for git inclusion (uncomment below if needed)
31+
mkdir -p $GITHUB_WORKSPACE/failed-tests
32+
cat Testing/Temporary/CTestCostData.txt | grep -v -- --- \
33+
| awk '{print $1 " " 1 " " gensub(/(.*)\.(.).*/, "\\1.\\2", "g", $3) }' \
34+
| sort > $GITHUB_WORKSPACE/failed-tests/rr-test-ctestcostdata.txt
35+
STATUS=1 # to trigger artifacts creation
36+
3137
exit $STATUS

0 commit comments

Comments
 (0)