Skip to content

Commit

Permalink
Add script to check for Windows, use it to skip sphinx test
Browse files Browse the repository at this point in the history
The Sphinx scripts need to be updated in much of the same ways that
btest was updated in order to run internal subprocesses and whatnot.
  • Loading branch information
timwoj committed Jan 10, 2023
1 parent 0939715 commit c56c7bc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions btest
Original file line number Diff line number Diff line change
Expand Up @@ -2227,6 +2227,10 @@ def create_output_handler(options):
print("cannot open %s: %s" % (options.diagfile, e), file=sys.stderr)

if options.sphinx:
if sys.platform == 'win32':
print("Sphinx support is disabled on Windows", file=sys.stderr)
sys.exit(1)

output_handlers += [SphinxOutput(options)]

if options.xmlfile:
Expand Down
13 changes: 13 additions & 0 deletions testing/Scripts/is-not-windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

case "$OSTYPE" in
msys*)
exit 1
;;
cygwin*)
exit 1
;;
*)
exit 0
;;
esac
1 change: 1 addition & 0 deletions testing/tests/sphinx/run-sphinx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# %TEST-REQUIRES: which sphinx-build
# %TEST-REQUIRES: ${SCRIPTS}/is-not-windows
#
# %TEST-EXEC: cp -r %DIR/../../../examples/sphinx/* .
# %TEST-EXEC: make clean && make text
Expand Down

0 comments on commit c56c7bc

Please sign in to comment.