aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-03-09 23:02:12 +0100
committerLudovic Courtès <ludo@gnu.org>2020-03-09 23:46:36 +0100
commit7e5f016cdbca09b6ee2af71e495002e7686ef6f7 (patch)
tree0d33c7d4ce3e6cf00a17df364de931cb49521b46 /gnu/tests
parent8a49e63b2dbfe422471afb59412d16db8b31b9f0 (diff)
downloadpatches-7e5f016cdbca09b6ee2af71e495002e7686ef6f7.tar
patches-7e5f016cdbca09b6ee2af71e495002e7686ef6f7.tar.gz
tests: zabbix: Set 'PATH' before running the scripts.
This is a followup to 8b9cad01e9619f53dc5a65892ca6a09ca5de3447. * gnu/tests/monitoring.scm (run-zabbix-server-test)[test]: Set 'PATH' in MARIONETTE.
Diffstat (limited to 'gnu/tests')
-rw-r--r--gnu/tests/monitoring.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/tests/monitoring.scm b/gnu/tests/monitoring.scm
index 14d989d79a..732fbc54d7 100644
--- a/gnu/tests/monitoring.scm
+++ b/gnu/tests/monitoring.scm
@@ -194,6 +194,13 @@ cat ~a | sudo -u zabbix psql zabbix;
(start-service 'postgres))
marionette))
+ ;; Add /run/setuid-programs to $PATH so that the scripts passed to
+ ;; 'system' can find 'sudo'.
+ (marionette-eval
+ '(setenv "PATH"
+ "/run/setuid-programs:/run/current-system/profile/bin")
+ marionette)
+
(test-eq "postgres create zabbix user"
0
(marionette-eval '(begin (system #$%psql-user-create-zabbix))