Skip to content

Commit 08d2eed

Browse files
authored
Merge pull request #110 from paolobarbolini/test-dir
Verify that --test-dir is a directory
2 parents 16fd764 + b910846 commit 08d2eed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,13 @@ impl Config {
442442
);
443443
}
444444

445+
if !args.test_dir.is_dir() {
446+
bail!(
447+
"`{}` is not a directory. Please make sure --test-dir is correct",
448+
args.test_dir.display()
449+
);
450+
}
451+
445452
let is_commit = match (args.start.clone(), args.end.clone()) {
446453
(Some(Bound::Commit(_)), Some(Bound::Commit(_)))
447454
| (None, Some(Bound::Commit(_)))

0 commit comments

Comments
 (0)