Ensure t/whitespace.t is skipped when outside a memcached git checkout
The test as written uses git to find a list of files to check, so it doesn't
work correctly if it is unrolled in, say, some other git repository
where git ls-files returns unexpected results.
Reported in
@@ -5,6 +5,11 @@ our @files;
BEGIN {
chdir "$Bin/.." or die;
+ unless (-d "$Bin/../.git") {
+ use Test::More;
+ plan skip_all => "Skipping test because this does not appear to be a memcached git working directory";
+ exit 0;
+ }
my @exempted = qw(Makefile.am ChangeLog doc/Makefile.am README README.md compile_commands.json);
push(@exempted, glob("doc/*.xml"));
