From 6c9e540fdbdf331129a0100c3ed1a88730871634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 12 May 2024 23:49:06 +0200 Subject: [PATCH] Fix path to pexpect's bashrc (#485) Fix path to pexpect's bashrc, to make tests more reliable. The path was changed in 46e6e7509fa2ab888b51d397658f59841d0c0917 to `replwrap/bashrc.sh` inside pexpect package; however, FWICS no such directory ever existed and the bashrc file was always directly inside the package directory. Without this change, pexpect's bashrc is not loaded and tests fail when user's bashrc results in a long prompt. In my case, they failed on a system with a 12-character hostname (and passed on a system with a 6-character hostname). --- test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.py b/test/test.py index c8f9419..ca38be6 100755 --- a/test/test.py +++ b/test/test.py @@ -73,7 +73,7 @@ def _repl_sh(command, args, non_printable_insert): def bash_repl(command="bash"): - bashrc = os.path.join(os.path.dirname(pexpect.__file__), "replwrap", "bashrc.sh") + bashrc = os.path.join(os.path.dirname(pexpect.__file__), "bashrc.sh") sh = _repl_sh(command, ["--rcfile", bashrc], non_printable_insert="\\[\\]") return sh