Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Fix regression tests.
Browse files Browse the repository at this point in the history
Don't run two time migrations of the same jobs which leads to strange
unpredictable results. Also fixed the check to look for the correct
ids.
  • Loading branch information
Marco van Wieringen committed Sep 5, 2013
1 parent 41ff342 commit 6628042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/prune-copy-test
Expand Up @@ -113,7 +113,7 @@ check_restore_diff
# Copy jobs are pruned like normal jobs after the Job Retention period
# the admin 'c'opy job should also be pruned
# F F c c C C I0 I -> F I
$bperl -e "check_prune_list('$tmp/log10.out',1,3,4,5,6,7)"
$bperl -e "check_prune_list('$tmp/log10.out',1,5,6,7)"
estat=$(($estat + $?))

end_test
3 changes: 1 addition & 2 deletions tests/prune-migration-test
Expand Up @@ -46,7 +46,6 @@ wait
list jobs
@# should migrate two jobs
run job=migrate-job yes
run job=migrate-job yes
wait
messages
list jobs
Expand Down Expand Up @@ -101,7 +100,7 @@ check_restore_diff
# anymore. See scripts/functions.pm for details.

# M M g g F F I0 -> F
$bperl -e "check_prune_list('$tmp/log10.out',1,2,3,4,5,7)"
$bperl -e "check_prune_list('$tmp/log10.out',1,2,5,7)"
estat=$(($estat + $?))

end_test

0 comments on commit 6628042

Please sign in to comment.