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

Commit

Permalink
Fix regressions now that prune jobs.
Browse files Browse the repository at this point in the history
Now that prune jobs can prune more then just backup jobs add the
jobtype=backup as argument to the cmd so it knows what to prune.
  • Loading branch information
Marco van Wieringen committed May 8, 2013
1 parent c1a7b44 commit a2d2ce6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions tests/prune-base-job-test
Expand Up @@ -110,7 +110,7 @@ sql
SELECT count(*) FROM BaseFiles;
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
@$out $tmp/log1.out
@################################################################
Expand All @@ -120,7 +120,7 @@ wait
messages
@$out $tmp/log11.out
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
@$out $tmp/log1.out
@################################################################
Expand All @@ -136,7 +136,7 @@ wait
messages
@$out $tmp/log13.out
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
@$out $tmp/log1.out
@################################################################
Expand All @@ -155,7 +155,7 @@ messages
list jobs
@$out $tmp/log14.out
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
END_OF_DATA

Expand Down
6 changes: 3 additions & 3 deletions tests/prune-config-test
Expand Up @@ -56,7 +56,7 @@ messages
@$out $tmp/log10.out
@# should prune nothing
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
quit
EOF
Expand All @@ -76,7 +76,7 @@ reload
messages
@# should prune jobs using DailySave
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
EOF

Expand All @@ -96,7 +96,7 @@ reload
messages
@# should prune jobs using Full Set
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
EOF

Expand Down
2 changes: 1 addition & 1 deletion tests/prune-copy-test
Expand Up @@ -79,7 +79,7 @@ sql
SELECT JobId, Name, JobTDate, StartTime, Type, Level, JobFiles, JobStatus
FROM Job ORDER BY StartTime;
prune jobs yes
prune jobs jobtype=backup yes
list jobs
@################################################################
@# now do a restore
Expand Down
2 changes: 1 addition & 1 deletion tests/prune-migration-test
Expand Up @@ -66,7 +66,7 @@ sql
SELECT JobId, JobTDate, StartTime, EndTime FROM Job;
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
sql
SELECT JobId, JobTDate, StartTime, EndTime FROM Job;
Expand Down
8 changes: 4 additions & 4 deletions tests/prune-test
Expand Up @@ -39,7 +39,7 @@ messages
@################################################################
@# Should not prune anything
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
@$out $tmp/log4.out
@################################################################
Expand All @@ -53,7 +53,7 @@ wait
messages
@sleep 2
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
@$out $tmp/log5.out
@################################################################
Expand All @@ -63,7 +63,7 @@ wait
messages
@sleep 2
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
@$out $tmp/log6.out
@################################################################
Expand All @@ -80,7 +80,7 @@ messages
@################################################################
@# Should prune the restore job and the last incremental job (jobfiles=0)
list jobs
prune jobs yes
prune jobs jobtype=backup yes
list jobs
quit
EOF
Expand Down

0 comments on commit a2d2ce6

Please sign in to comment.