1
0
Fork 0
mirror of https://github.com/vbatts/dedupe-linker.git synced 2024-12-28 01:26:33 +00:00

skip test if noop

This commit is contained in:
Vincent Batts 2014-10-14 23:28:37 -04:00
parent 71419f8faa
commit afe6182084

View file

@ -43,12 +43,14 @@ func main() {
)
for _, arg := range flag.Args() {
if !*flNoop {
if m, err := file.SameDevPaths(*flVarBase, arg); err != nil {
log.Fatal(err)
} else if !m {
log.Printf("SKIPPING: %q is not on the same device as %q", arg, *flVarBase)
continue
}
}
done := make(chan struct{})
infos := file.HashFileGetter(arg, hash, *flWorkers, done)
for fi := range infos {