tests: Really test the etc-bashrc-d-service-type service.

Follow-up of: 4c017ccfe5.

The --init-file script will only be run in the context of an interactive
shell, which is not the case here. Use the `-i` argument instead to force an
interactive shell. That way, the test_bashrc_d.sh is now really executed.

* gnu/tests/base.scm (run-basic-test): Fix the etc-bashrc-d-service-type test.

Change-Id: I3d749f65f51ff103c76f4e3d60746ae963660329
This commit is contained in:
Mathieu Othacehe 2025-06-29 16:02:30 +02:00
parent 92ea9e69ac
commit f3a8db842d
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -181,8 +181,7 @@ test \"$PROFILE_D_OK\" = yes")
(test-assert "/etc/bashrc.d is sourced"
(zero? (marionette-eval
'(system* "bash"
;; Ensure Bash runs interactively.
"--init-file"
"-i" ;run interactively
#$(plain-file "test_bashrc_d.sh"
"\
. /etc/bashrc