summaryrefslogtreecommitdiff
path: root/test/sys-script.py
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-09-29 12:27:21 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-09-29 12:27:21 +0200
commit227ef9bc38804b04620420f57226246fab1a0a9c (patch)
tree9b3502ab517770fb438a6a1b3f381d3ea70d48f5 /test/sys-script.py
parent01a65d4180446661732d90d23a24ab692d279295 (diff)
downloadsystemd-227ef9bc38804b04620420f57226246fab1a0a9c.tar.gz
create-sys-script: adapt to separate build dir, modernize, add more checks
The script wasn't apparently used since the switch to meson, because it required the sys subdirectory to be present in the same subdirectory where the output script is located. Let's use f-strings to make the whole thing more readable. Add some extra checks.
Diffstat (limited to 'test/sys-script.py')
-rwxr-xr-xtest/sys-script.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/sys-script.py b/test/sys-script.py
index 6c9ee5ff83..ac1369735b 100755
--- a/test/sys-script.py
+++ b/test/sys-script.py
@@ -32,7 +32,6 @@ def f(path, mode, contents):
f.write(contents)
os.chmod(path, mode)
-
if len(sys.argv) < 2:
exit("Usage: {} <target dir>".format(sys.argv[0]))