Skip to content

Commit f2e7eef

Browse files
authored
fix prompt issues in explore test (#206)
recent changes meant we were picking up `$PS1` from rcfiles, which caused local tests to fail. adds a manual override in the expect file.
1 parent 03c4830 commit f2e7eef

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎test/explore.sh‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ trap 'cleanup' EXIT
1717
try_workspace="$(mktemp -d)"
1818
cd "$try_workspace" || exit 9
1919

20-
SHELL="/usr/bin/env bash --norc"
21-
export SHELL
22-
PS1="# "
23-
export PS1
24-
2520
echo hi >expected.out
2621

2722
cat >explore.exp <<EOF
@@ -30,6 +25,7 @@ cat >explore.exp <<EOF
3025
set timeout 3
3126
3227
spawn "$TRY" explore
28+
send -- "PS1='# '\r"
3329
expect {
3430
# Ignore the warnings
3531
"Warning*" {

0 commit comments

Comments
 (0)