aboutsummaryrefslogtreecommitdiff
path: root/source/app.d
diff options
context:
space:
mode:
Diffstat (limited to 'source/app.d')
-rw-r--r--source/app.d4
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;
}