File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ jobs:
146146
147147 "$SYNC_DIR/tool" --config="tests/$SYNC_DIR.toml" sync > /dev/null 2> out
148148 cat out
149- if ! grep -q '1 tools!' out; then echo "error on: tool"; false; fi
149+ if ! grep -q 'tools!' out; then echo "error on: tool"; false; fi
150150
151151 - if : matrix.os != 'windows-latest'
152152 name : " Integration test: [unix] [sync-full]"
Original file line number Diff line number Diff line change @@ -117,13 +117,7 @@ fn copy_file(
117117 install_path. push ( store_directory) ;
118118 install_path. push ( exe_name) ;
119119
120- // DANGER: This check does not really mean two paths resolve to the
121- // same file. For example, the exe path /a/b/c.exe is not the same
122- // as install path b/c.exe if the current working directory is in /d
123- // instead of /a. Perhaps expand store directory to absolute or use
124- // `BurntSushi/same-file`?
125- eprintln ! ( "KK-{}" , & install_path. display( ) ) ;
126- if self_path. ends_with ( & install_path) {
120+ if self_path == & install_path {
127121 // May have issues with a symbolic links. The assumption is that
128122 // the store directory is in the PATH and the executable itself
129123 // where this issue should not apply but may be an edge case.
You can’t perform that action at this time.
0 commit comments