diff --git a/tests/Makefile b/tests/Makefile index 805d1909..6a586b6e 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -18,7 +18,12 @@ help: export SBY_WORKDIR_GITIGNORE := 1 +ifeq ($(SBY_CMD),) SBY_MAIN := $(realpath $(dir $(firstword $(MAKEFILE_LIST)))/../sbysrc/sby.py) +else +SBY_MAIN := $(realpath $(dir $(firstword $(MAKEFILE_LIST)))/make/run_sby.py) +endif + ifeq (nt-unix-like,$(OS_NAME)) SBY_MAIN := $(shell cygpath -w $(SBY_MAIN)) endif diff --git a/tests/make/run_sby.py b/tests/make/run_sby.py new file mode 100644 index 00000000..9fb7de46 --- /dev/null +++ b/tests/make/run_sby.py @@ -0,0 +1,4 @@ +import os +import sys +prog = os.environ.get("SBY_CMD", "sby") +os.execvp(prog, [prog, *sys.argv[1:]])