mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
tests: zabbix: Set 'PATH' before running the scripts.
This is a followup to 8b9cad01e9
.
* gnu/tests/monitoring.scm (run-zabbix-server-test)[test]: Set 'PATH' in
MARIONETTE.
This commit is contained in:
parent
8a49e63b2d
commit
7e5f016cdb
1 changed files with 7 additions and 0 deletions
|
@ -194,6 +194,13 @@ (define marionette
|
|||
(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))
|
||||
|
|
Loading…
Reference in a new issue