diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-10-11 15:16:53 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-10-11 15:16:53 +0200 |
commit | 7d0ed4a68269773e02f0550e491573556ab35ad6 (patch) | |
tree | 913be11ec3fbdd5ba6478b8b5c03acceca268f64 | |
parent | f0f15b89b15c58bed760e3ea4b721eab77efe92c (diff) | |
download | qutebrowser-7d0ed4a68269773e02f0550e491573556ab35ad6.tar.gz qutebrowser-7d0ed4a68269773e02f0550e491573556ab35ad6.zip |
tests: Use sys.executable in hint tests
See #5787
-rw-r--r-- | tests/end2end/features/conftest.py | 1 | ||||
-rw-r--r-- | tests/end2end/features/hints.feature | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/end2end/features/conftest.py b/tests/end2end/features/conftest.py index 0208cce05..87748a43a 100644 --- a/tests/end2end/features/conftest.py +++ b/tests/end2end/features/conftest.py @@ -378,6 +378,7 @@ def hint(quteproc, args): @bdd.when(bdd.parsers.parse('I hint with args "{args}" and follow {letter}')) def hint_and_follow(quteproc, args, letter): args = args.replace('(testdata)', testutils.abs_datapath()) + args = args.replace('(python-executable)', sys.executable) quteproc.send_cmd(':hint {}'.format(args)) quteproc.wait_for(message='hints: *') quteproc.send_cmd(':follow-hint {}'.format(letter)) diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index caf1200e2..35e48c483 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -61,17 +61,17 @@ Feature: Using hints Scenario: Using :hint spawn with flags and -- (issue 797) When I open data/hints/html/simple.html - And I hint with args "-- all spawn -v python -c ''" and follow a + And I hint with args "-- all spawn -v (python-executable) -c ''" and follow a Then the message "Command exited successfully." should be shown Scenario: Using :hint spawn with flags (issue 797) When I open data/hints/html/simple.html - And I hint with args "all spawn -v python -c ''" and follow a + And I hint with args "all spawn -v (python-executable) -c ''" and follow a Then the message "Command exited successfully." should be shown Scenario: Using :hint spawn with flags and --rapid (issue 797) When I open data/hints/html/simple.html - And I hint with args "--rapid all spawn -v python -c ''" and follow a + And I hint with args "--rapid all spawn -v (python-executable) -c ''" and follow a Then the message "Command exited successfully." should be shown @posix |