dont care buot symlink tbh
parent
61569b0515
commit
b696251895
|
|
@ -2,7 +2,6 @@ package main_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"io/fs"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
|
@ -101,10 +100,8 @@ func TestRun(t *testing.T) {
|
||||||
} else {
|
} else {
|
||||||
for _, entry := range entries {
|
for _, entry := range entries {
|
||||||
inf := path.Join(ind, entry.Name())
|
inf := path.Join(ind, entry.Name())
|
||||||
if stat, err := os.Stat(inf); err != nil {
|
if _, err := os.Stat(inf); err != nil {
|
||||||
t.Errorf("%s no longer in ind: %v", inf, err)
|
t.Errorf("%s no longer in ind: %v", inf, err)
|
||||||
} else if stat.Mode() != fs.ModeSymlink {
|
|
||||||
t.Errorf("%s not replaced with symlink: %v", inf, stat.Mode())entry.Name(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue