From 20bbcc5e435e3b793c61300b0f9c254fb859efe5 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 27 May 2019 01:52:23 -0400 Subject: fix --test-requires --- source/app.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/app.d') diff --git a/source/app.d b/source/app.d index 47c1ad7..7dcabf4 100644 --- a/source/app.d +++ b/source/app.d @@ -63,11 +63,11 @@ int main(string[] args) { dumpfile_explicit = buildPath(output_dir, env_name ~ ".txt"); dumpfile_freeze = buildPath(output_dir, env_name ~ ".pip"); - if (!test_requires.empty) { + if (run_tests && !test_requires.empty) { test_requires = buildPath(test_requires).absolutePath; } - if (!test_requires.exists) { + if (run_tests && !test_requires.empty && !test_requires.exists) { writeln("--test-requires, file not found: '" ~ test_requires ~ "'"); return 1; } -- cgit