File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -232,30 +232,30 @@ mod test {
232232 let bin_path = dir. path ( ) . join ( "test.bin" ) ;
233233 std:: fs:: write ( & bin_path, b"Hello \x00 !" ) . expect ( "Failed to write test binary file" ) ;
234234
235- let output = Command :: new ( "git" )
235+ let status = Command :: new ( "git" )
236236 . arg ( "init" )
237237 . current_dir ( dir. path ( ) )
238- . output ( )
238+ . status ( )
239239 . expect ( "Failed to run git init" ) ;
240- assert ! ( output . status. success( ) ) ;
240+ assert ! ( status. success( ) ) ;
241241
242- let output = Command :: new ( "git" )
242+ let status = Command :: new ( "git" )
243243 . arg ( "add" )
244244 . arg ( & text_path)
245245 . arg ( & bin_path)
246246 . current_dir ( dir. path ( ) )
247- . output ( )
247+ . status ( )
248248 . expect ( "Failed to run git add" ) ;
249- assert ! ( output . status. success( ) ) ;
249+ assert ! ( status. success( ) ) ;
250250
251- let output = Command :: new ( "git" )
251+ let status = Command :: new ( "git" )
252252 . arg ( "commit" )
253253 . arg ( "-m" )
254254 . arg ( "Test commit" )
255255 . current_dir ( dir. path ( ) )
256- . output ( )
256+ . status ( )
257257 . expect ( "Failed to run git commit" ) ;
258- assert ! ( output . status. success( ) ) ;
258+ assert ! ( status. success( ) ) ;
259259
260260 let mut files = git_tree_files ( dir. path ( ) , "HEAD" ) . expect ( "Failed to get git tree files" ) ;
261261 files. sort ( ) ;
You can’t perform that action at this time.
0 commit comments