From 59e925b9976d246117a47e965ef93aab336312d2 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 25 Jan 2016 18:42:02 +0000 Subject: [PATCH] make run_tests.py respect environment vars --- run_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run_tests.py b/run_tests.py index 3dea9ea..59e5930 100644 --- a/run_tests.py +++ b/run_tests.py @@ -1,19 +1,19 @@ from sys import stdout, exit -from os import listdir, remove, name as osname +from os import listdir, remove, name as osname, getenv from os.path import splitext, join as joinp import subprocess as sp # configuration - you can modify this -COMPILER = "c++" +COMPILER = getenv("CXX", "c++") CXXFLAGS = [ "-std=c++14", "-Wall", "-Wextra", "-Wno-missing-braces", # clang false positive "-I." -] +] + getenv("CXXFLAGS", "").split() COLORS = (osname != "nt") -TESTDIR = "tests" +TESTDIR = getenv("TESTDIR", "tests") SRCEXT = ".cc" # don't modify past these lines