]> git.lizzy.rs Git - rust.git/commitdiff
Tidy up a few problems with run-make tests
authorAlex Crichton <alex@alexcrichton.com>
Mon, 2 Dec 2013 22:51:47 +0000 (14:51 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 3 Dec 2013 16:13:00 +0000 (08:13 -0800)
Use the correct set of dependencies as well as CFG_PYTHON instead of assuming
'python' is the right one.

mk/tests.mk

index 86436abe43ded4ae8d3d76bd7eabe9a0ab6a49aa..e19e8638331ebffea13307a2cd614416e6e5f721 100644 (file)
@@ -920,11 +920,11 @@ $$(call TEST_OK_FILE,$(1),$(2),$(3),rmake): \
 
 $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
                $(S)src/test/run-make/%/Makefile \
-               $$(HBIN$(1)_H_$(3))/rustc$$(X_$(3))
+               $$(HSREQ$(1)_H_$(3))
        @rm -rf $(3)/test/run-make/$$*
        @mkdir -p $(3)/test/run-make/$$*
        @echo maketest: $$*
-       $$(Q)python $(S)src/etc/maketest.py $$(dir $$<) \
+       $$(Q)$$(CFG_PYTHON) $(S)src/etc/maketest.py $$(dir $$<) \
            $$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
            $(3)/test/run-make/$$* \
            "$$(CC_$(3)) $$(CFG_GCCISH_CFLAGS_$(3))"