]> arthur.barton.de Git - bup.git/commitdiff
Makefile: fix pytest invocation when xdist isn't available
authorRob Browning <rlb@defaultvalue.org>
Fri, 26 Mar 2021 05:44:12 +0000 (00:44 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 28 Mar 2021 21:25:18 +0000 (16:25 -0500)
Call "set -x", not "set-x".

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Makefile

index 880e92944f680be7b95c20380a885b71bf457fc0..9510210c381990a7aac36e0332d23a28ef39ce90 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -179,11 +179,11 @@ maybe_specific_n = $(if $(filter -j%,$(parallel_opt)),-n$(get_parallel_n))
 xdist_opt = $(if $(filter -j,$(parallel_opt)),-nauto,$(maybe_specific_n))
 
 test: all test/tmp dev/python
-       if test yes = $$(dev/python -c "import xdist; print('yes')" 2>/dev/null); then \
-         (set -x; ./pytest $(xdist_opt);) \
-       else \
-         (set-x; ./pytest;) \
-       fi
+        if test yes = "$$(dev/python -c 'import xdist; print("yes")' 2>/dev/null)"; then \
+          (set -x; ./pytest $(xdist_opt);) \
+        else \
+          (set -x; ./pytest;) \
+        fi
 
 stupid:
        PATH=/bin:/usr/bin $(MAKE) test