]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: use ~/.bashrc instead of /etc/bash.bashrc 22323/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 31 Jan 2022 16:11:06 +0000 (17:11 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 31 Jan 2022 16:47:01 +0000 (17:47 +0100)
/etc/bash.bashrc appears to be Debian-specific[0] (or specific to bash
versions compiled with -DSYS_BASHRC), which doesn't seem to be the case
for C8S. Let's use ~/.bashrc instead to make the CIs happy again.

[0] https://sources.debian.org/src/bash/5.1-6/debian/README/#L50-L56

test/TEST-69-SHUTDOWN/test.sh

index 7bd285d65b966c4223438e861b16cf96a3be0b1c..dd7b8998b5b65d05bca97802111f4ae2188bc61e 100755 (executable)
@@ -26,9 +26,9 @@ test_append_files() {
     # prevent shutdown in test suite, the expect script does that manually.
     rm "${workspace:?}/usr/lib/systemd/tests/testdata/units/end.service"
     inst /usr/bin/screen
-    echo "PS1='screen\$WINDOW # '" >"$workspace/etc/bash.bashrc"
+    echo "PS1='screen\$WINDOW # '" >>"$workspace/root/.bashrc"
     echo 'startup_message off' >"$workspace/etc/screenrc"
-    echo 'bell_msg ""' >>"$1/etc/screenrc"
+    echo 'bell_msg ""' >>"$workspace/etc/screenrc"
 }
 
 do_test "$@"