@@ -29,7 +29,7 @@ fn backup_src() -> Result<()> {
29
29
30
30
// Dump a directory (works like a non-recursive ls)
31
31
let dump_src = cli_run ( working_path, backup_path) ?
32
- . args ( & [ "dump" , "last " , "src" ] )
32
+ . args ( & [ "dump" , "LAST " , "src" ] )
33
33
. assert ( )
34
34
. success ( ) ;
35
35
let dump_src_output = stdout ( & dump_src) ;
@@ -52,7 +52,7 @@ fn backup_src() -> Result<()> {
52
52
53
53
// Dump main.rs and compare it to the real deal
54
54
let dump_main = cli_run ( working_path, backup_path) ?
55
- . args ( & [ "dump" , "last " , "src/main.rs" ] )
55
+ . args ( & [ "dump" , "LAST " , "src/main.rs" ] )
56
56
. assert ( )
57
57
. success ( ) ;
58
58
let main_output = stdout ( & dump_main) ;
@@ -61,21 +61,21 @@ fn backup_src() -> Result<()> {
61
61
62
62
// Cool, we dumped a directory and a file. Let's try some errors
63
63
let mut fail = cli_run ( working_path, backup_path) ?
64
- . args ( & [ "dump" , "last " , "src/nope.rs" ] )
64
+ . args ( & [ "dump" , "LAST " , "src/nope.rs" ] )
65
65
. assert ( )
66
66
. failure ( ) ;
67
67
let mut fail_output = stderr ( & fail) ;
68
68
assert ! ( fail_output. contains( "Couldn't find src/nope.rs in the given snapshot" ) ) ;
69
69
70
70
fail = cli_run ( working_path, backup_path) ?
71
- . args ( & [ "dump" , "last " , "src/main.rs/nope" ] )
71
+ . args ( & [ "dump" , "LAST " , "src/main.rs/nope" ] )
72
72
. assert ( )
73
73
. failure ( ) ;
74
74
fail_output = stderr ( & fail) ;
75
75
assert ! ( fail_output. contains( "src/main.rs is a file, not a directory" ) ) ;
76
76
77
77
fail = cli_run ( working_path, backup_path) ?
78
- . args ( & [ "dump" , "last " , "src/../src/main.rs" ] )
78
+ . args ( & [ "dump" , "LAST " , "src/../src/main.rs" ] )
79
79
. assert ( )
80
80
. failure ( ) ;
81
81
fail_output = stderr ( & fail) ;
0 commit comments