tools: safechroot: TestInitializeShouldCreateChroot: fix if condition (#3498)
* tools: safechroot: TestInitializeShouldCreateChroot: fix if condition * tools: safechroot: TestInitializeShouldCreateChroot: remove redundant if condition Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
Родитель
73628086a0
Коммит
dea2c23605
|
@ -64,15 +64,8 @@ func TestInitializeShouldCreateRoot(t *testing.T) {
|
|||
|
||||
defer chroot.Close(defaultLeaveOnDisk)
|
||||
|
||||
// when Docker based pipeline:
|
||||
// - chroot name are static and pre-defined
|
||||
// - chroot folders are re-cycled
|
||||
_, err = os.Stat(chroot.RootDir())
|
||||
if buildpipeline.IsRegularBuild() {
|
||||
assert.True(t, !os.IsNotExist(err))
|
||||
} else {
|
||||
assert.True(t, !os.IsNotExist(err))
|
||||
}
|
||||
assert.True(t, !os.IsNotExist(err))
|
||||
}
|
||||
|
||||
func TestCloseShouldRemoveRoot(t *testing.T) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче