fortrangoingonforty/fortsh / 5783e53

Browse files

fix empty PS1 test: combine PS1 set and echo in one command

The test set PS1='' then tried to send another command, but the empty
prompt broke the test runner's prompt detection between steps.
Combining into PS1=''; echo emptyps1 avoids the sync issue.
Authored by espadonne
SHA
5783e5312a51798859439296bed9dcaa300d9524
Parents
396f69c
Tree
be5d43e

1 changed file

StatusFile+-
M tests/interactive/test_specs/prompt_display.yaml 1 3
tests/interactive/test_specs/prompt_display.yamlmodified
@@ -152,9 +152,7 @@ tests:
152152
   # =============================================================
153153
   - name: "Empty PS1 still allows commands"
154154
     steps:
155
-      - send_line: "PS1=''"
156
-      - wait: 0.3
157
-      - send_line: "echo emptyps1"
155
+      - send_line: "PS1=''; echo emptyps1"
158156
     expect_output: "emptyps1"
159157
     match_type: "contains"
160158