Avoid race condition in case tests directory does not exist
Make sure the tests directory exists before symlinking files into it. Closes: #1703 Closes: #1704 Approved by: cgwalters
This commit is contained in:
parent
0a53af801e
commit
4a389b3082
|
|
@ -360,7 +360,8 @@ EXTRA_DIST += \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
tests/libreaddir-rand.so: Makefile
|
tests/libreaddir-rand.so: Makefile
|
||||||
$(AM_V_GEN) ln -fns ../.libs/libreaddir-rand.so tests
|
mkdir -p tests/
|
||||||
|
$(AM_V_GEN) ln -fns ../.libs/libreaddir-rand.so tests/
|
||||||
ALL_LOCAL_RULES += tests/libreaddir-rand.so
|
ALL_LOCAL_RULES += tests/libreaddir-rand.so
|
||||||
CLEANFILES += tests/libreaddir-rand.so tests/ostree-symlink-stamp \
|
CLEANFILES += tests/libreaddir-rand.so tests/ostree-symlink-stamp \
|
||||||
tests/ostree-prepare-root-symlink-stamp tests/ostree-remount-symlink-stamp \
|
tests/ostree-prepare-root-symlink-stamp tests/ostree-remount-symlink-stamp \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue