diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-27 01:52:23 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-27 01:52:23 -0400 |
commit | 20bbcc5e435e3b793c61300b0f9c254fb859efe5 (patch) | |
tree | 792eeb769824e936dd5d15559f3442175628e894 | |
parent | 921eb00c131fe0c6f0834f2556e7597424a3ba49 (diff) | |
download | dm-20bbcc5e435e3b793c61300b0f9c254fb859efe5.tar.gz |
fix --test-requires
-rw-r--r-- | source/app.d | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |