File test-path.patch of Package python-rstcheck

--- rstcheck-3.3.1.orig/test.bash	2019-02-11 20:27:21.877062317 +0700
+++ rstcheck-3.3.1/test.bash	2019-02-11 20:43:49.147996658 +0700
@@ -8,75 +8,75 @@
 
 for name in examples/good/*.rst
 do
-    ./rstcheck.py "$name"
+    $PYTHON ./rstcheck.py "$name"
 done
 
 for name in examples/bad/*.rst
 do
-    if ./rstcheck.py "$name"
+    if $PYTHON ./rstcheck.py "$name"
     then
         exit 1
     fi
 done
 
 # Test multiple files.
-./rstcheck.py examples/good/*.rst
+$PYTHON ./rstcheck.py examples/good/*.rst
 
-./rstcheck.py \
+$PYTHON ./rstcheck.py \
     --ignore-directives=my-directive \
     --ignore-role=some-custom-thing \
     examples/custom/good_with_custom.rst
 
-./rstcheck.py --ignore-language=cpp examples/bad/bad_cpp.rst
+$PYTHON ./rstcheck.py --ignore-language=cpp examples/bad/bad_cpp.rst
 
-./rstcheck.py - < examples/good/good.rst
+$PYTHON ./rstcheck.py - < examples/good/good.rst
 
 # Test multiple mix of good/bad files.
-if ./rstcheck.py examples/bad/bad_cpp.rst examples/good/good.rst
+if $PYTHON ./rstcheck.py examples/bad/bad_cpp.rst examples/good/good.rst
 then
     exit 1
 fi
 
 # "-" should only be allowed to be checked alone.
-if ./rstcheck.py - examples/good/good.rst
+if $PYTHON ./rstcheck.py - examples/good/good.rst
 then
     exit 1
 fi
 
-./rstcheck.py --report=none examples/bad/bad_rst.rst
+$PYTHON ./rstcheck.py --report=none examples/bad/bad_rst.rst
 
-if ./rstcheck.py missing_file.rst
+if $PYTHON ./rstcheck.py missing_file.rst
 then
     exit 1
 fi
 
-./rstcheck.py --recursive examples/good
-if ./rstcheck.py --recursive examples/bad
+$PYTHON ./rstcheck.py --recursive examples/good
+if $PYTHON ./rstcheck.py --recursive examples/bad
 then
     exit 1
 fi
 
 # Test ignore messages
-./rstcheck.py examples/bad/bad_rst.rst --ignore-messages '(Title .verline & underline mismatch\.$)'
-if ./rstcheck.py examples/bad/bad_rst.rst --ignore-messages '(No match\.$)'
+$PYTHON ./rstcheck.py examples/bad/bad_rst.rst --ignore-messages '(Title .verline & underline mismatch\.$)'
+if $PYTHON ./rstcheck.py examples/bad/bad_rst.rst --ignore-messages '(No match\.$)'
 then
     exit 1
 fi
 
 # Test configuration file
-./rstcheck.py examples/with_configuration/good.rst
-if ./rstcheck.py examples/with_configuration/bad.rst
+$PYTHON ./rstcheck.py examples/with_configuration/good.rst
+if $PYTHON ./rstcheck.py examples/with_configuration/bad.rst
 then
     exit 1
 fi
 
 # Ignore message on configuration file
-./rstcheck.py examples/with_configuration/bad-2.rst
+$PYTHON ./rstcheck.py examples/with_configuration/bad-2.rst
 
-if python -c 'import sys; sys.exit(0 if sys.version_info >= (3,) else 1)'
+if $PYTHON -c 'import sys; sys.exit(0 if sys.version_info >= (3,) else 1)'
 then
-    python -m doctest -v README.rst rstcheck.py
-    ./rstcheck.py README.rst
+    $PYTHON -m doctest -v README.rst rstcheck.py
+    $PYTHON ./rstcheck.py README.rst
 fi
 
 echo -e '\x1b[01;32mOkay\x1b[0m'
openSUSE Build Service is sponsored by