(Bisect runs can legitimately return failure for various reasons, such as if
"There are only 'skip'ped commits left to test.")
Add an editor block, and convert the only tabs to spaces.
my %options;
unless(GetOptions(\%options,
- 'start=s',
- 'end=s',
- 'target=s',
- 'jobs|j=i',
- 'expect-pass=i',
- 'expect-fail',
- 'one-liner|e=s',
- )) {
+ 'start=s',
+ 'end=s',
+ 'target=s',
+ 'jobs|j=i',
+ 'expect-pass=i',
+ 'expect-fail',
+ 'one-liner|e=s',
+ )) {
usage();
}
# And now get git bisect to do the hard work:
system 'git', 'bisect', 'run', $^X, $runner, @ARGS and die;
-my $end_time = time;
+END {
+ my $end_time = time;
-printf "That took %d seconds\n", $end_time - $start_time;
+ printf "That took %d seconds\n", $end_time - $start_time
+ if defined $start_time;
+}
+
+# Local variables:
+# cperl-indent-level: 4
+# indent-tabs-mode: nil
+# End:
+#
+# ex: set ts=8 sts=4 sw=4 et: