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_restore_file.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_restore_file.rb')
-rw-r--r-- | test/tc_restore_file.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/tc_restore_file.rb b/test/tc_restore_file.rb index e9544f9..8284275 100644 --- a/test/tc_restore_file.rb +++ b/test/tc_restore_file.rb @@ -1,5 +1,3 @@ -$: << File.dirname(__FILE__)+"/../lib" - require 'test/unit' require 'byteback/restore_file' require 'tempfile' @@ -20,8 +18,7 @@ class BytebackFileTest < Test::Unit::TestCase end def test_general - f = Tempfile.new($0, @snapshot_path) - puts f.path + f = Tempfile.new("restore-file-", @snapshot_path) system("setfattr --name user.rsync.%stat -v \"41755 12,34 56:78\" #{f.path}") b = Byteback::RestoreFile.new(f.path, @byteback_root) assert_equal(041755, b.mode) |