Skip to content

Commit 8411152

Browse files
committed
Update CTestCostData.txt.
1 parent fb97ee8 commit 8411152

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Upload failed-test artifacts
3131
uses: actions/upload-artifact@v4
32-
if: failure() && steps.test.outcome == 'failure'
32+
#if: failure() && steps.test.outcome == 'failure'
3333
with:
3434
name: failed-tests-${{ inputs.architecture }}
3535
path: failed-tests/*

scripts/github-actions-test.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ mkdir -p Testing/Temporary
1414
mv ../scripts/github-actions-CTestCostData.txt Testing/Temporary/CTestCostData.txt
1515
ctest -j$halfproc --verbose
1616

17-
STATUS=$?
17+
STATUS=1
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
20+
# Retrieve ctest cost data for git inclusion (disable in build-and-test the if condition in yaml and set STATUS to 1 above).
21+
cat Testing/Temporary/CTestCostData.txt | grep -v -- --- | awk '{print $1 " " 1 " " gensub(/(.*)\.(.).*/, "\\1.\\2", "g", $3) }' \
22+
| sort > $GITHUB_WORKSPACE/failed-tests/rr-test-ctestcostdata.txt
2123
cd /tmp
2224
rm rr-test-cpu-lock || true
2325
for dir in rr-test-*; do

0 commit comments

Comments
 (0)