testutil: Add sanity check for cwd

This commit is contained in:
Adam Spiers 2021-04-05 15:36:36 +01:00
parent 2c7d3d4762
commit 5d4e68291e

View file

@ -66,6 +66,8 @@ sub uncapture_stderr {
}
sub init_test_dirs {
-d "t" or die "Was expecting tests to be run from root of repo\n";
# Create a run_from/ subdirectory for tests which want to run
# from a separate directory outside the Stow directory or
# target directory.