Project

General

Profile

scheduler-dependencies-failure.patch

szarate, 2018-04-12 08:02

View differences:

t/05-scheduler-dependencies.t
714 714
is($jobD2_h->{settings}{TEST}, $jobD->TEST, 'jobD2 test and jobD test are equal');
715 715

  
716 716
my $jobA2_h = job_get_deps($jobA2->id);
717
is_deeply(
718
    $jobA2_h->{children}->{Chained},
719
    [$jobB2_h->{id}, $jobC2_h->{id}, $jobD2_h->{id}],
720
    'jobA2 has jobB2, jobC2 and jobD2 as children'
721
);
717
my @a_ =    @{$jobA2_h->{children}->{Chained}};
718
my @b_ =    @{[$jobB2_h->{id}, $jobC2_h->{id}, $jobD2_h->{id}]};
719
@a_ =    sort { $a <=> $b } @a_;
720
@b_ =    sort { $a <=> $b } @b_;
721
note explain (\@a_, \@b_);
722
is_deeply(\@a_, \@b_, 'jobA2 has jobB2, jobC2 and jobD2 as children') or diag explain (\@a_, \@b_);
722 723

  
723 724
# situation parent is done, children running -> parent is cloned -> parent is running -> parent is cloned. Check all children has new parent:
724 725
# A <- B