spack/var/spack/repos/builtin/packages/flux-sched/no-valgrind.patch
Mark Grondona 1b71ceb384
add flux-core v0.31.0 and flux-sched v0.20.0 (#27336)
Update flux-core and flux-sched package.py to include latest releases.

For flux-sched:

 - Add patch to disable false-positive-happy valgrind test
 - pin yaml-cpp to 0.6.3 due to issue described at:
   https://github.com/flux-framework/flux-sched/issues/886
2021-11-28 02:18:00 +01:00

20 lines
757 B
Diff

diff --git a/t/t5000-valgrind.t b/t/t5000-valgrind.t
index 08255348..aac546f6 100755
--- a/t/t5000-valgrind.t
+++ b/t/t5000-valgrind.t
@@ -6,6 +6,14 @@ test_description='Run broker under valgrind with a small workload'
test -n "$FLUX_TESTS_LOGFILE" && set -- "$@" --logfile
. `dirname $0`/sharness.sh
+# Do not run valgrind test by default unless FLUX_ENABLE_VALGRIND_TEST
+# is set in environment (e.g. by CI), or the test run run with -d, --debug
+#
+if test -z "$FLUX_ENABLE_VALGRIND_TEST" && test "$debug" = ""; then
+ skip_all='skipping valgrind tests since FLUX_ENABLE_VALGRIND_TEST not set'
+ test_done
+fi
+
if ! which valgrind >/dev/null; then
skip_all='skipping valgrind tests since no valgrind executable found'
test_done