summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2025-06-29 16:02:30 +0200
committerMathieu Othacehe <othacehe@gnu.org>2025-07-01 11:50:15 +0200
commitf3a8db842d8de40fe0f5cfdce3b0389dec926c97 (patch)
tree74e6f4fcfb2e35cc7036a86c10ccce1d5b61a576
parent92ea9e69acdb4cf7714eb434486071261f098184 (diff)
tests: Really test the etc-bashrc-d-service-type service.
Follow-up of: 4c017ccfe56a8887bf26faaea62d60501d7cc4f6. 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
-rw-r--r--gnu/tests/base.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/tests/base.scm b/gnu/tests/base.scm
index db904d7f10..720a5eb10d 100644
--- a/gnu/tests/base.scm
+++ b/gnu/tests/base.scm
@@ -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