Add a test/shadow-bin/bup that fails, and always include shadow-bin in
the PATH to prevent accidentally invoking a local version.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
SHELL := bash
.DEFAULT_GOAL := all
+# Guard against accidentally using/testing a local bup
+export PATH := $(CURDIR)/dev/shadow-bin:$(PATH)
+
clean_paths :=
generated_dependencies :=
./pylint
test: all test/tmp dev/python lint
+ ! bup version # Ensure we can't test the local bup (cf. dev/shadow-bin)
./bup features
if test yes = "$$(dev/python -c 'import xdist; print("yes")' 2>/dev/null)"; then \
(set -x; ./pytest $(xdist_opt);) \
--- /dev/null
+#!/bin/sh
+
+cat <<EOF
+error: something ran "bup"; bup imposter intentionally failing
+EOF
+
+exit 2