X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/7172f60547e2ff74db45f836a345df4cd0d8e619..2e6469a14ae2b2c7b547076efe3fdc8eacae6050:/test/ganeti-cleaner_unittest.bash diff --git a/test/ganeti-cleaner_unittest.bash b/test/ganeti-cleaner_unittest.bash index 548c136..208ec08 100755 --- a/test/ganeti-cleaner_unittest.bash +++ b/test/ganeti-cleaner_unittest.bash @@ -75,15 +75,13 @@ run_cleaner() { create_archived_jobs() { local i jobdir touchargs local jobarchive=$queuedir/archive - local large=$(( RANDOM * RANDOM )) local old_ts=$(date -d '25 days ago' +%Y%m%d%H%M) # Remove jobs from previous run find $jobarchive -mindepth 1 -type f | xargs -r rm i=0 - for job_id in {1..50} $(( large % RANDOM )) $RANDOM \ - $(( large - 1 )) $large $(( large + 1 )) + for job_id in {1..50} 469581574 19857 1420164 494433 2448521 do jobdir=$jobarchive/$(( job_id / 10 )) test -d $jobdir || mkdir $jobdir