[neon/backports-focal/xdg-desktop-portal/Neon/unstable] tests: tests: call test-document-fuse.py directly

Simon McVittie null at kde.org
Wed Jan 13 06:32:43 GMT 2021


Git commit 4facd0312aea3091682f3130e591df71d4d5fe45 by Simon McVittie, on behalf of Jan Tojnar.
Committed on 09/09/2020 at 12:01.
Pushed by ash into branch 'Neon/unstable'.

tests: call test-document-fuse.py directly

It has a shebang so no need to pass it to python3 in the tests.

It also makes it easier for downstreams to wrap the python file for setting extra environment variables.

[smcv: chmod the script +x]

M  +0    -0    tests/test-document-fuse.py
M  +2    -2    tests/test-document-fuse.sh

https://invent.kde.org/neon/backports-focal/xdg-desktop-portal/commit/4facd0312aea3091682f3130e591df71d4d5fe45

diff --git a/tests/test-document-fuse.py b/tests/test-document-fuse.py
old mode 100644
new mode 100755
diff --git a/tests/test-document-fuse.sh b/tests/test-document-fuse.sh
index cd51356..7868c91 100755
--- a/tests/test-document-fuse.sh
+++ b/tests/test-document-fuse.sh
@@ -72,14 +72,14 @@ fi
 
 # First run a basic single-thread test
 echo Testing single-threaded
-python3 ${test_srcdir}/test-document-fuse.py --iterations 3 -v
+${test_srcdir}/test-document-fuse.py --iterations 3 -v
 echo "ok single-threaded"
 
 # Then a bunch of copies in parallel to stress-test
 echo Testing in parallel
 PIDS=()
 for i in $(seq 20); do
-    python3 ${test_srcdir}/test-document-fuse.py --iterations 10 --prefix $i &
+    ${test_srcdir}/test-document-fuse.py --iterations 10 --prefix $i &
     PID="$!"
     PIDS+=( "$PID" )
 done



More information about the Neon-commits mailing list