diff options
author | dormando <dormando@rydia.net> | 2022-07-03 18:08:32 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-07-03 18:08:32 -0700 |
commit | 8715e9692b374e93d822c878db198ae7ae3d520f (patch) | |
tree | 64cf5f32f9dc63d10894cba0ee924f81afb69c7a | |
parent | 69e732ab6f9da866867a355fd88ebfa453531344 (diff) | |
download | memcached-8715e9692b374e93d822c878db198ae7ae3d520f.tar.gz |
tests: skip whitespace on vendor/*
-rwxr-xr-x | devtools/clean-whitespace.pl | 2 | ||||
-rwxr-xr-x | scripts/memcached-tool | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/devtools/clean-whitespace.pl b/devtools/clean-whitespace.pl index 154ce37..0c729ca 100755 --- a/devtools/clean-whitespace.pl +++ b/devtools/clean-whitespace.pl @@ -11,7 +11,7 @@ push(@exempted, glob("m4/*backport*m4")); my %exempted_hash = map { $_ => 1 } @exempted; my @stuff = split /\0/, `git ls-files -z -c -m -o --exclude-standard`; -my @files = grep { ! $exempted_hash{$_} } @stuff; +my @files = grep { ! $exempted_hash{$_} && $_ !~ m/^vendor\// } @stuff; unless (@files) { warn "ERROR: You don't seem to be running this from a git checkout\n"; diff --git a/scripts/memcached-tool b/scripts/memcached-tool index 34436b5..f2ab29f 100755 --- a/scripts/memcached-tool +++ b/scripts/memcached-tool @@ -157,7 +157,7 @@ if ($mode eq 'keys') { # return format looks like this # key=foo exp=2147483647 la=1521046038 cas=717111 fetch=no cls=13 size=1232 if (/^key=(\S+) exp=(-?\d+) .*/) { - print $_ + print $_ } $keycount++; } |