~ruther/guix-local

f3a8db842d8de40fe0f5cfdce3b0389dec926c97 — Mathieu Othacehe 1 year, 3 months ago 92ea9e6
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
1 files changed, 1 insertions(+), 2 deletions(-)

M gnu/tests/base.scm
M gnu/tests/base.scm => gnu/tests/base.scm +1 -2
@@ 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