Skip to content

Tests sensitive to changes in git cli arguments #187

@timabell

Description

@timabell

tests green on git 2.34.1:

╭─tim@shiny ~/repo/gitopolis ‹main› 
╰─$ git --version
git version 2.34.1

test red on git 2.25.1

this machine
╭─tim@fox ~/repo/gitopolis ‹main› 
╰─$ git --version                                                                                                                         101 ↵
git version 2.25.1

error:

running 22 tests                                               
test exec_missing ... ok       
test clone ... FAILED               
test exec_invalid_command ... FAILED                                    
test clone_tag ... FAILED           
test help ... ok                    
test add ... FAILED                 
test list_errors_when_no_config ... ok                                  
test exec_non_zero ... FAILED                                           
test exec_tag_abbreviated ... FAILED                                    
test exec_tag ... FAILED            
test exec ... FAILED                
test list_long ... FAILED           
test list ... FAILED                
test tag ... FAILED                 
test list_tag_abbreviated ... FAILED                                    
test remove ... ok                  
test tag_remove_abbreviated ... FAILED                                  
test tag_remove ... FAILED                                              
test list_tag ... FAILED            
test tags ... FAILED                
test tags_long_abbreviated ... FAILED                                   
test tags_long ... FAILED           

failures:                           

---- clone stdout ----              

thread 'clone' panicked at /home/tim/.asdf/installs/rust/1.87.0/toolchains/1.87.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src
/ops/function.rs:250:5:             
Unexpected stdout, failed diff original var                             
├── original: 🏢 some_git_folder> Cloning source_repo ...                                                                                       
│                                   
│   Cloning into 'some_git_folder'...                                   
│   warning: You appear to have cloned an empty repository.                                                                                     
│   done.                           
│                                   
├── diff:                           
│   ---         orig                
│   +++         var                 
│   @@ -3,3 +3 @@                   
│   -Cloning into 'some_git_folder'...                                  
│   -warning: You appear to have cloned an empty repository.                                                                                    
│   -done.                          
│   +fatal: repository 'source_repo' does not exist                                                                                             
└── var as str: 🏢 some_git_folder> Cloning source_repo ...                                                                                     
                                    
    fatal: repository 'source_repo' does not exist                                                                                              
                                    

command=`cd "/tmp/.tmpgP6gyL" && "/home/tim/repo/gitopolis/target/debug/gitopolis" "clone"`                                                     
code=0                              
stdout=```                          
🏢 some_git_folder> Cloning source_repo ...    
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-demandwaiting to see if anyone actually cares

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions