From f3a8db842d8de40fe0f5cfdce3b0389dec926c97 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Sun, 29 Jun 2025 16:02:30 +0200 Subject: [PATCH] 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 --- gnu/tests/base.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/tests/base.scm b/gnu/tests/base.scm index db904d7f102..720a5eb10d5 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