Skip to content

Commit

Permalink
testutil: Add sanity check for cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
aspiers committed Mar 9, 2024
1 parent 2c7d3d4 commit 5d4e682
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/testutil.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5d4e682

Please sign in to comment.