]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: test/sys depends on test/sys.tar.xz 2990/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Fri, 8 Apr 2016 13:53:03 +0000 (13:53 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Fri, 8 Apr 2016 13:53:03 +0000 (13:53 +0000)
Fixes:
$ ls -ld test/sys
drwxr-xr-x. 12 vagrant vagrant 4096 Jan  6  2012 test/sys

$ git pull
Updating d4337c1..710a885
Fast-forward
 ...
 test/sys.tar.xz                             | Bin 261380 -> 165116 bytes
 test/udev-test.pl                           |  67 ++++++++++++-----

$ sudo make check TESTS=test/udev-test.pl
...
FAIL: test/udev-test.pl

$ rm -r test/sys
$ make test/sys
$ sudo make check TESTS=test/udev-test.pl
...
PASS: test/udev-test.pl

Makefile.am

index d670ae19847bedb3bdeaa23fff8cb6baf74ab2e9..c566b1f6e4d61aa84f6041d2e70381a1c36c127e 100644 (file)
@@ -3829,9 +3829,11 @@ check_DATA += \
 endif
 
 # packed sysfs test tree
-test/sys:
+test/sys: test/sys.tar.xz
+       -rm -rf test/sys
        $(AM_V_at)$(MKDIR_P) $(dir $@)
        $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
+       -touch test/sys
 
 test-sys-distclean:
        -rm -rf test/sys