summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-11-12 16:09:00 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-11-12 16:09:00 +0100
commit7f749487c5fa01c8d41149699af5632955bd19a3 (patch)
tree55a5ba95ff6636e3220a0f9c075cd8decee6a9fe /test
parentMerge pull request #7178 from yuwata/rfe-7169-v2 (diff)
downloadsystemd-7f749487c5fa01c8d41149699af5632955bd19a3.tar.xz
systemd-7f749487c5fa01c8d41149699af5632955bd19a3.zip
test-execute: change path to python3 (#7306)
Change python3 path from /bin/python3 to /usr/bin/python3 to make the test work on Ubuntu Xenial. Follow-up for #7178.
Diffstat (limited to 'test')
-rw-r--r--test/test-execute/exec-systemcallerrornumber-name.service2
-rw-r--r--test/test-execute/exec-systemcallerrornumber-number.service2
-rw-r--r--test/test-execute/exec-systemcallfilter-with-errno-name.service2
-rw-r--r--test/test-execute/exec-systemcallfilter-with-errno-number.service2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/test-execute/exec-systemcallerrornumber-name.service b/test/test-execute/exec-systemcallerrornumber-name.service
index 229b862794..e167d2716b 100644
--- a/test/test-execute/exec-systemcallerrornumber-name.service
+++ b/test/test-execute/exec-systemcallerrornumber-name.service
@@ -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
diff --git a/test/test-execute/exec-systemcallerrornumber-number.service b/test/test-execute/exec-systemcallerrornumber-number.service
index 2e13f08bf5..203215682f 100644
--- a/test/test-execute/exec-systemcallerrornumber-number.service
+++ b/test/test-execute/exec-systemcallerrornumber-number.service
@@ -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
diff --git a/test/test-execute/exec-systemcallfilter-with-errno-name.service b/test/test-execute/exec-systemcallfilter-with-errno-name.service
index b9beb73b7e..8380d5a155 100644
--- a/test/test-execute/exec-systemcallfilter-with-errno-name.service
+++ b/test/test-execute/exec-systemcallfilter-with-errno-name.service
@@ -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
diff --git a/test/test-execute/exec-systemcallfilter-with-errno-number.service b/test/test-execute/exec-systemcallfilter-with-errno-number.service
index 6e5019d593..dbb9540a1e 100644
--- a/test/test-execute/exec-systemcallfilter-with-errno-number.service
+++ b/test/test-execute/exec-systemcallfilter-with-errno-number.service
@@ -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