is job_entry($id)->{result}, -2, "gm rerun $id";
ta [qw/rm -j/, $id];
+ta [rerun => 'fca'];
+my @fca_jobs = grep { $_->{problem} eq 'fca' } @{job_list()};
+ok ((!grep { $_->{result} != -2 } @fca_jobs), "gm rerun fca");
+
sub terr {
my ($args, $err) = @_;
my $ret = test_app 'Gruntmaster::App' => $args;
terr [qw/get/], 'No table selected';
terr [qw/-c get/], 'Wrong number of arguments';
terr [qw/list/], 'No table selected';
-terr [qw/-p rerun/], 'This command only works on jobs';
-terr [qw/-j rerun/], 'Wrong number of arguments';
+terr [qw/-j rerun/], 'Not enough arguments';
terr [qw/rm/], 'No table selected';
terr [qw/-j rm/], 'Wrong number of arguments';
terr [qw/set/], 'No table selected';