Skip to content

Commit

Permalink
Include CTestCostData.txt in github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardu committed Jun 4, 2024
1 parent 29e28f9 commit ab3daea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/github-actions-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope > /dev/null
(echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns) > /dev/null || true
let halfproc=`nproc`/2
cd obj
mkdir -p Testing/Temporary
mv ../.buildkite/CTestCostData.txt Testing/Temporary
ctest -j$halfproc --verbose

STATUS=$?
STATUS=1
if [[ $STATUS != 0 ]]; then
mkdir $GITHUB_WORKSPACE/failed-tests
tar zcf $GITHUB_WORKSPACE/failed-tests/rr-test-ctestcostdata.tar.gz Testing/Temporary/CTestCostData.txt
cd /tmp
rm rr-test-cpu-lock || true
for dir in rr-test-*; do
Expand Down

0 comments on commit ab3daea

Please sign in to comment.