diff options
author | Chris Elsworth <chris.elsworth@bytemark.co.uk> | 2017-01-31 11:12:10 +0000 |
---|---|---|
committer | Chris Elsworth <chris.elsworth@bytemark.co.uk> | 2017-01-31 11:12:10 +0000 |
commit | 1586557ca5639d160300697cd65067536b66e5d1 (patch) | |
tree | b3cb7c903e52eef5132acbf5d0038b83afe7330b /test/tc_byteback_snapshot.rb | |
parent | c68fe975ab4b47436bd90fa701b83a78793b0f32 (diff) | |
parent | 53f78a01f2fb514d61fdb076f5b749e03ffddb74 (diff) |
Merge branch 'add-make-test' into 'master'
Add gitlab-ci
Closes #13
See merge request !5
Diffstat (limited to 'test/tc_byteback_snapshot.rb')
-rw-r--r-- | test/tc_byteback_snapshot.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/tc_byteback_snapshot.rb b/test/tc_byteback_snapshot.rb index 87b6409..71f8c39 100644 --- a/test/tc_byteback_snapshot.rb +++ b/test/tc_byteback_snapshot.rb @@ -1,5 +1,3 @@ -$: << File.dirname(__FILE__)+"/../lib" - require 'test/unit' require 'byteback/backup_directory' require 'time' @@ -58,7 +56,7 @@ class SnapshotTest < Test::Unit::TestCase if biggest_offset.nil? or offsets.max > biggest_offset biggest_offset = offsets.max else - puts "Oldest backup with space for #{limit} backups is #{offsets.max} days: #{offsets.join(", ")}" + puts "Oldest backup with space for #{limit} backups is #{offsets.max} days: #{offsets.join(", ")}" if $VERBOSE break end @@ -70,7 +68,7 @@ class SnapshotTest < Test::Unit::TestCase end # - # This run the same test as above, execpt with 3 hosts all competeing for space + # This run the same test as above, execpt with 3 hosts all competing for space # def test_sort_by_importance_with_multiple_hosts start = Time.now @@ -106,7 +104,7 @@ class SnapshotTest < Test::Unit::TestCase if biggest_offset.nil? or offsets.max > biggest_offset biggest_offset = offsets.max else - puts "Oldest backup with space for #{limit} backups and 3 hosts is #{offsets.max} days: #{offsets.join(", ")}" + puts "Oldest backup with space for #{limit} backups and 3 hosts is #{offsets.max} days: #{offsets.join(", ")}" if $VERBOSE break end @@ -154,7 +152,7 @@ class SnapshotTest < Test::Unit::TestCase day += 1 now += 86400 end - puts "Oldest backup with space for #{limit} backups is #{offsets.max} days: #{offsets.join(", ")}" + puts "Oldest backup with space for #{limit} backups is #{offsets.max} days: #{offsets.join(", ")}" if $VERBOSE end end |