Skip to content

Commit 946826d

Browse files
committed
[temp] probe: do not stop at the failing test
1 parent fd99fc9 commit 946826d

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

‎.github/workflows/probe-win-unit-av.yml‎

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,21 @@ jobs:
2020
continue-on-error: true
2121
run: |
2222
export MCPP_VENDORED_XLINGS=$(cygpath -w "$USERPROFILE/.xlings/subos/default/bin/xlings.exe")
23+
set +e +o pipefail
2324
mcpp --version
24-
mcpp test test_pack_distribution 2>&1 | tail -12
25-
mcpp test test_pack_distribution --print-launch > launch.json 2> launch.err || true
26-
head -c 3000 launch.json
25+
mcpp test test_pack_distribution > test.log 2>&1
26+
tail -12 test.log
27+
mcpp test test_pack_distribution --print-launch > launch.json 2> launch.err
28+
echo "print-launch: $?"; tail -3 launch.err
29+
cat launch.json | head -c 6000
30+
exit 0
2731
- name: where the call came from
2832
shell: bash
2933
continue-on-error: true
3034
run: |
35+
set +e +o pipefail
3136
exe=$(find target -name unit.exe | head -1)
32-
echo "exe=$exe"; ls -la "$(dirname "$exe")" | head -20
37+
echo "exe=$exe"
3338
cdb=""
3439
for c in "/c/Program Files (x86)/Windows Kits/10/Debuggers/x64/cdb.exe" "/c/Program Files/Windows Kits/10/Debuggers/x64/cdb.exe"; do
3540
[ -f "$c" ] && cdb="$c"
@@ -72,10 +77,16 @@ jobs:
7277
PY
7378
)
7479
echo "args=$args"
75-
if [ -n "$cdb" ]; then
76-
"$cdb" -cf cdb.txt "$(cygpath -w "$exe")" $args 2>&1 | tail -120
77-
else
78-
echo "no cdb on this image"
80+
echo "--- with the launch's arguments"
81+
"$cdb" -cf cdb.txt "$(cygpath -w "$exe")" $args > cdb1.log 2>&1
82+
grep -a -n '==AV==' cdb1.log | head -2
83+
sed -n '/==AV==/,$p' cdb1.log | head -150
84+
if ! grep -aq '==AV==' cdb1.log; then
85+
tail -30 cdb1.log
86+
echo "--- with no arguments"
87+
"$cdb" -cf cdb.txt "$(cygpath -w "$exe")" > cdb2.log 2>&1
88+
sed -n '/==AV==/,$p' cdb2.log | head -150
89+
grep -aq '==AV==' cdb2.log || tail -30 cdb2.log
7990
fi
8091
- name: the bytes around the caller, and what the objects leave undefined
8192
shell: bash

0 commit comments

Comments
 (0)