qutebrowser/tests/end2end/data/userscripts/echo.bat
Daniel Schadt b0114768c7 fix spawn tests on Windows
On Windows, no echo.exe exists normally, so calling echo from the tests
is no good idea, since it relies on Cygwin to be installed and in %PATH%
(so that echo.exe is available).

This fixes this by providing a small echo.bat which is callable from the
tests, and then using a platform-specific path to the executable instead
of the hardcoded "echo". This should ensure that the tests pass even on
systems where echo.exe is not installed.

Note that we can't simply use a do-nothing exe (like rundll or hh.exe),
as we're passing parameters, and those executables may behave
differently in the presence of those parameters.
2016-09-08 23:14:10 +02:00

7 lines
289 B
Batchfile

@echo off
rem This is needed because echo does not exist as an external program on
rem Windows, so we can't call echo(.exe) from qutebrowser, but it's useful for
rem tests. This little file is callable via :spawn and mimics (in a very naive
rem way) the echo command line utility.
echo %*