From 5d4e68291e24558a51376cf218cca9a1142dfff1 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 5 Apr 2021 15:36:36 +0100 Subject: [PATCH] testutil: Add sanity check for cwd --- t/testutil.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/testutil.pm b/t/testutil.pm index a700bd5..3913cfc 100755 --- a/t/testutil.pm +++ b/t/testutil.pm @@ -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.