From d32ee243af65b1c80f0634d94cd690953cca4407 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 8 Apr 2020 15:17:21 +0200 Subject: [PATCH] tests: fix parallel build race If we're building with a separate build directory, these two build targets can fail in case their output directory hasn't been created by some other target that may or may not have run earlier. Signed-off-by: David Lamparter --- tests/subdir.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/subdir.am b/tests/subdir.am index bce08c4034..5efdcbbd4c 100644 --- a/tests/subdir.am +++ b/tests/subdir.am @@ -90,6 +90,7 @@ check_PROGRAMS += \ endif tests/lib/cli/test_commands_defun.c: vtysh/vtysh_cmd.c + mkdir -p tests/lib/cli sed \ -e 's%"vtysh/vtysh\.h"%"tests/helpers/c/tests.h"%' \ -e 's/vtysh_init_cmd/test_init_cmd/' \ @@ -99,6 +100,7 @@ tests/lib/cli/test_commands_defun.c: vtysh/vtysh_cmd.c CLEANFILES += tests/lib/cli/test_commands_defun.c tests/isisd/test_fuzz_isis_tlv_tests.h: $(top_srcdir)/tests/isisd/test_fuzz_isis_tlv_tests.h.gz + mkdir -p tests/isisd gzip -d < $(top_srcdir)/tests/isisd/test_fuzz_isis_tlv_tests.h.gz > "$@" CLEANFILES += tests/isisd/test_fuzz_isis_tlv_tests.h -- 2.39.5