projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ab400a
)
GitHub CI: fail sanitizer job if any logs were created.
author
Kirill Isakov
<is-kir@ya.ru>
Sun, 25 Jul 2021 14:55:00 +0000
(20:55 +0600)
committer
Kirill Isakov
<is-kir@ya.ru>
Sun, 25 Jul 2021 15:04:43 +0000
(21:04 +0600)
.github/workflows/sanitizers/run.sh
patch
|
blob
|
history
diff --git
a/.github/workflows/sanitizers/run.sh
b/.github/workflows/sanitizers/run.sh
index
de12a2b
..
c2d9dad
100755
(executable)
--- a/
.github/workflows/sanitizers/run.sh
+++ b/
.github/workflows/sanitizers/run.sh
@@
-26,3
+26,12
@@
esac
sudo --preserve-env=ASAN_OPTIONS,TSAN_OPTIONS,UBSAN_OPTIONS \
make check VERBOSE=1
+
+# Check that the sanitizer has not created any log files.
+# If it has, fail the job to notify the developer.
+log_count=$(find "$logs" -type f -printf . | wc -c)
+
+if [ "$log_count" != 0 ]; then
+ echo "expected zero sanitizer logs, found $log_count"
+ exit 1
+fi