Skip to content

Commit

Permalink
test: update test_valid_keymap to have a smaller prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
frazze-jobb committed Oct 30, 2023
1 parent 7606788 commit a06ce68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/kernel/test/interactive_shell_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,10 @@ shell_ignore_pager_commands(Config) ->
test_valid_keymap(Config) when is_list(Config) ->
DataDir = proplists:get_value(data_dir,Config),
Term = setup_tty([{args, ["-config", DataDir ++ "valid_keymap.config"]} | Config]),
Prompt = fun() -> ["\e[94m",54620,44397,50612,47,51312,49440,47568,"\e[0m"] end,
erpc:call(Term#tmux.node, application, set_env,
[stdlib, shell_prompt_func_test,
proplists:get_value(shell_prompt_func_test, Config, Prompt)]),
try
check_not_in_content(Term, "Invalid key"),
check_not_in_content(Term, "Invalid function"),
Expand All @@ -1223,7 +1227,7 @@ test_valid_keymap(Config) when is_list(Config) ->
check_content(Term, ">$"),
send_tty(Term, "1.\n"),
send_tty(Term, "C-b"),
check_content(Term, "2>\\s1\\s?.$"),
check_content(Term, "2>\\s1.$"),
ok
after
stop_tty(Term),
Expand Down

0 comments on commit a06ce68

Please sign in to comment.