From: Peter Rabbitson Date: Wed, 24 Sep 2014 04:28:06 +0000 (+0200) Subject: (travis) Attempt to grab more info on parallel_installdeps_notest failures X-Git-Tag: v0.082800~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=83da25f071197b0592a05b851f906f85a08750eb;p=dbsrgits%2FDBIx-Class.git (travis) Attempt to grab more info on parallel_installdeps_notest failures --- diff --git a/maint/getstatus b/maint/getstatus new file mode 100755 index 0000000..f49c410 --- /dev/null +++ b/maint/getstatus @@ -0,0 +1,52 @@ +#!/usr/bin/perl + +use warnings; +use strict; + +use Config; +use Term::ANSIColor ':constants'; +my $CRST = RESET; +my $CCODE = BOLD; +my $CSTAT = BOLD . GREEN; +my $CCORE = BOLD . CYAN; +my $CSIG = CYAN; + +if (@ARGV) { + my $code = system (@ARGV); + + if ($code < 0) { + exit 127; + } + elsif ($code > 0) { + + my $status = $code >> 8; + my $signum = $code & 127; + my $core = $code & 128; + + my %sig_idx; + @sig_idx{split /\s+/, $Config{sig_num}} = split /\s/, $Config{sig_name}; + + printf STDERR ( +<&1 ) || (LASTEXIT=\$?; echo \"\$OUT\"; exit \$LASTEXIT)' \\ + 'OUT=\$(maint/getstatus $TIMEOUT_CMD cpanm --notest \"\$@\" 2>&1 ) || (LASTEXIT=\$?; echo \"\$OUT\"; exit \$LASTEXIT)' \\ 'giant space monkey penises' " }