summaryrefslogtreecommitdiff
path: root/tests/subdir.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2020-04-08 15:17:21 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-08 16:27:59 +0200
commitd32ee243af65b1c80f0634d94cd690953cca4407 (patch)
tree494a1b1df02d1cfb37b0646924576732d3f41cc3 /tests/subdir.am
parent63ffd0ea209a9d24cde135f790a20f0b4f1eee8b (diff)
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 <equinox@diac24.net>
Diffstat (limited to 'tests/subdir.am')
-rw-r--r--tests/subdir.am2
1 files changed, 2 insertions, 0 deletions
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