]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysv-generator-test: do not query $builddir
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 Sep 2017 11:34:55 +0000 (13:34 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 Sep 2017 11:44:38 +0000 (13:44 +0200)
This variable is not set by meson, so let's not try to use it.

We could use some more elaborate scheme (e.g. based on $MESON_BUILD_ROOT and
$MESON_SUBDIR) to find the path to systemd-sysv-generator, but it seems
that plain ./systemd-sysv-generator works just as well and has the advantage
that it's easy to invoke the test by hand (as long as one cd's to the
meson build dir).

test/sysv-generator-test.py

index 9774378ae6aa105b0ed2c960ee5a00a112990809..18bb40f8128151b3aaf6bdafd33ddf1ce0a00203 100755 (executable)
@@ -28,7 +28,7 @@ from glob import glob
 import collections
 from configparser import RawConfigParser
 
-sysv_generator = os.path.join(os.environ.get('builddir', '.'), 'systemd-sysv-generator')
+sysv_generator = './systemd-sysv-generator'
 
 class MultiDict(collections.OrderedDict):
     def __setitem__(self, key, value):