Skip to content

Commit

Permalink
firefox: Fix restart_firefox if $cmd is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
dzedro committed Oct 17, 2023
1 parent 61f00c3 commit 954be7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/x11test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ sub restart_firefox {
wait_still_screen 2;
$self->exit_firefox_common;
assert_script_run('time wait $(pidof firefox)');
enter_cmd "$cmd";
enter_cmd "$cmd" if defined $cmd;
enter_cmd "firefox $url >>firefox.log 2>&1 &";
$self->firefox_check_default;
assert_screen 'firefox-url-loaded';
Expand Down

0 comments on commit 954be7a

Please sign in to comment.