guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: tests: zabbix: Set 'PATH' before running the scripts.


From: guix-commits
Subject: 02/04: tests: zabbix: Set 'PATH' before running the scripts.
Date: Mon, 9 Mar 2020 18:47:01 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 7e5f016cdbca09b6ee2af71e495002e7686ef6f7
Author: Ludovic Court├Ęs <address@hidden>
AuthorDate: Mon Mar 9 23:02:12 2020 +0100

    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.
---
 gnu/tests/monitoring.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/tests/monitoring.scm b/gnu/tests/monitoring.scm
index 14d989d..732fbc5 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]