OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package cipd | 5 package local |
6 | 6 |
7 import ( | 7 import ( |
8 "io/ioutil" | 8 "io/ioutil" |
9 "os" | 9 "os" |
10 "path/filepath" | 10 "path/filepath" |
11 "strings" | 11 "strings" |
12 "testing" | 12 "testing" |
13 | 13 |
14 . "github.com/smartystreets/goconvey/convey" | 14 . "github.com/smartystreets/goconvey/convey" |
15 ) | 15 ) |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 "infra/xyz.py", | 251 "infra/xyz.py", |
252 }) | 252 }) |
253 | 253 |
254 // Separately check symlinks. | 254 // Separately check symlinks. |
255 ensureSymlinkTarget(byName["ENV/abs_in_root"], "dir/def.
py") | 255 ensureSymlinkTarget(byName["ENV/abs_in_root"], "dir/def.
py") |
256 ensureSymlinkTarget(byName["ENV/abs_link"], filepath.ToS
lash(filepath.Dir(tempDir))) | 256 ensureSymlinkTarget(byName["ENV/abs_link"], filepath.ToS
lash(filepath.Dir(tempDir))) |
257 ensureSymlinkTarget(byName["ENV/rel_link"], "abc.py") | 257 ensureSymlinkTarget(byName["ENV/rel_link"], "abc.py") |
258 }) | 258 }) |
259 }) | 259 }) |
260 } | 260 } |
OLD | NEW |