]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: fix parallel build race
authorDavid Lamparter <equinox@diac24.net>
Wed, 8 Apr 2020 13:17:21 +0000 (15:17 +0200)
committerDavid Lamparter <equinox@diac24.net>
Wed, 8 Apr 2020 14:27:59 +0000 (16:27 +0200)
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>
tests/subdir.am

index bce08c4034a7404e682c76bd601dcd371273b3da..5efdcbbd4c20f5019e1ae35bcef6ce26d6757fe6 100644 (file)
@@ -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