Permalink
Browse files

Merge pull request #4 from keyboardio/f/test-recursively/without-thir…

…d-party

quality/test-recursively: Don't try to match 3rd party libs
  • Loading branch information...
obra committed Oct 16, 2018
2 parents 59a7e5b + f3e1352 commit ee06746b9bb88e1442fd5c6fb3e8e9482bfe2b2a
Showing with 1 addition and 11 deletions.
  1. +1 −11 quality/test-recursively
@@ -3,15 +3,10 @@
use warnings;
use strict;
my $third_party_failed_count = 0;
my $failed_count = 0;
my $run_count =0;
my $target = shift;
# Third party libraries may fail our test suite. Since we don't have commit,
# we complain but don't fail the whole run for that
my @THIRD_PARTY_LIBRARIES = qw/Kaleidoscope-Hardware-Shortcut/;
my $pwd = `pwd`;
chomp($pwd);
my @files = `git ls-files`;
@@ -37,11 +32,7 @@ for my $dir (@files) {
print STDERR "\n$contents\n";
}
unlink(".build-log");
if (! grep $dir, @THIRD_PARTY_LIBRARIES ) {
$failed_count += $result;
} else {
$third_party_failed_count += $result;
}
$failed_count += $result;
$run_count++;
} else {
print " skip\n";
@@ -50,6 +41,5 @@ for my $dir (@files) {
print STDERR "Ran tests: $run_count\n";
print STDERR "Total failures: $failed_count\n";
print STDERR "3rd party failures: $third_party_failed_count\n";
exit($failed_count);
#make -pRrq |grep -q '^travis-test:$'

0 comments on commit ee06746

Please sign in to comment.