-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make the test suite pass on Windows. (#408)
* These changes make it so that the test suite passes on Windows. Some areas for further work have been marked with notes.
- Loading branch information
Showing
12 changed files
with
210 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ __pycache__ | |
/ops.egg-info | ||
.idea | ||
/docs/_build | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
#!/bin/bash | ||
|
||
python3 -m unittest "$@" | ||
if command -v python3 >/dev/null; then | ||
# linux or macos | ||
_python=python3 | ||
else | ||
# windows | ||
_python=python | ||
fi | ||
|
||
"$_python" --version | ||
|
||
"$_python" -m unittest "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@ECHO OFF | ||
|
||
CALL :CASE_%1 2>NUL | ||
IF ERRORLEVEL 1 ECHO [] | ||
|
||
EXIT /B 0 | ||
|
||
:CASE_db | ||
ECHO ["db:1"] | ||
EXIT /B | ||
|
||
:CASE_mon | ||
ECHO ["mon:2"] | ||
EXIT /B | ||
|
||
:CASE_db1 | ||
ECHO ["db1:4"] | ||
EXIT /B | ||
|
||
:CASE_db2 | ||
ECHO ["db2:5", "db2:6"] | ||
EXIT /B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@ECHO OFF | ||
|
||
CALL :CASE_%2 %* 2>NUL | ||
IF ERRORLEVEL 1 CALL :CASE_3 %* | ||
EXIT /B %ERRORLEVEL% | ||
|
||
:CASE_1 | ||
:CASE_2 | ||
ECHO ["remote/0"] | ||
EXIT /B 0 | ||
|
||
:CASE_3 | ||
ECHO ERROR invalid value "%2" for option -r: relation not found >&2 | ||
EXIT /B 2 | ||
|
||
:CASE_4 | ||
:CASE_5 | ||
ECHO ["remoteapp1/0"] | ||
EXIT /B 0 | ||
|
||
:CASE_6 | ||
ECHO ["remoteapp2/0"] | ||
EXIT /B 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.