]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-execute: change path to python3 (#7306)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 12 Nov 2017 15:09:00 +0000 (00:09 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 12 Nov 2017 15:09:00 +0000 (16:09 +0100)
Change python3 path from /bin/python3 to /usr/bin/python3 to make
the test work on Ubuntu Xenial.

Follow-up for #7178.

test/test-execute/exec-systemcallerrornumber-name.service
test/test-execute/exec-systemcallerrornumber-number.service
test/test-execute/exec-systemcallfilter-with-errno-name.service
test/test-execute/exec-systemcallfilter-with-errno-number.service

index 229b862794db7dbdfe083b74ef5dfd781465663d..e167d2716ba888593412b9efe3125c83ae80b948 100644 (file)
@@ -2,7 +2,7 @@
 Description=Test for SystemCallErrorNumber
 
 [Service]
-ExecStart=/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
+ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
 Type=oneshot
 SystemCallFilter=~uname
 SystemCallErrorNumber=EACCES
index 2e13f08bf5a367204e90c55839f6d37537d4f3e0..203215682fb7bff382a0ece6b578d43bd2eaac61 100644 (file)
@@ -2,7 +2,7 @@
 Description=Test for SystemCallErrorNumber
 
 [Service]
-ExecStart=/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
+ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
 Type=oneshot
 SystemCallFilter=~uname
 SystemCallErrorNumber=255
index b9beb73b7e867977285ec530473464f3aeb4d037..8380d5a15516ba82cb8428a5670ed2488e94cf33 100644 (file)
@@ -2,7 +2,7 @@
 Description=Test for SystemCallFilter with errno name
 
 [Service]
-ExecStart=/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
+ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
 Type=oneshot
 SystemCallFilter=~uname:EILSEQ
 SystemCallErrorNumber=EACCES
index 6e5019d5932de9e475959be630080805725ae82b..dbb9540a1e9413d146627e690a9e08951f2f436c 100644 (file)
@@ -2,7 +2,7 @@
 Description=Test for SystemCallFilter with errno number
 
 [Service]
-ExecStart=/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
+ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
 Type=oneshot
 SystemCallFilter=~uname:255
 SystemCallErrorNumber=EACCES