Buildah clean
This commit is contained in:
parent
7806e217ef
commit
884f96013e
@ -136,7 +136,7 @@ class Buildah(Localhost):
|
|||||||
cli.exit_code = await proc.wait()
|
cli.exit_code = await proc.wait()
|
||||||
|
|
||||||
async def clean(self, *args, **kwargs):
|
async def clean(self, *args, **kwargs):
|
||||||
if self.mnt:
|
if self.mnt is not None:
|
||||||
await self.exec('buildah', 'umount', self.ctr, buildah=False)
|
await self.exec('buildah', 'umount', self.ctr, buildah=False)
|
||||||
if self.ctr:
|
if self.ctr is not None:
|
||||||
await self.exec('buildah', 'rm', self.ctr, buildah=False)
|
await self.exec('buildah', 'rm', self.ctr, buildah=False)
|
||||||
|
|||||||
@ -29,6 +29,7 @@ test_args_params = [
|
|||||||
('buildah', 'from', 'alpine'),
|
('buildah', 'from', 'alpine'),
|
||||||
('buildah', 'mount', ''),
|
('buildah', 'mount', ''),
|
||||||
('buildah', 'run', '', '--', 'sh', '-euc', 'echo hi'),
|
('buildah', 'run', '', '--', 'sh', '-euc', 'echo hi'),
|
||||||
|
('buildah', 'umount', ''),
|
||||||
('buildah', 'rm', ''),
|
('buildah', 'rm', ''),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
@ -38,6 +39,7 @@ test_args_params = [
|
|||||||
('buildah', 'from', 'alpine'),
|
('buildah', 'from', 'alpine'),
|
||||||
('buildah', 'mount', ''),
|
('buildah', 'mount', ''),
|
||||||
('buildah', 'run', '--user', 'root', '', '--', 'sh', '-euc', 'echo hi'),
|
('buildah', 'run', '--user', 'root', '', '--', 'sh', '-euc', 'echo hi'),
|
||||||
|
('buildah', 'umount', ''),
|
||||||
('buildah', 'rm', ''),
|
('buildah', 'rm', ''),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
@ -47,6 +49,7 @@ test_args_params = [
|
|||||||
('ssh', 'host', 'buildah', 'from', 'alpine'),
|
('ssh', 'host', 'buildah', 'from', 'alpine'),
|
||||||
('ssh', 'host', 'buildah', 'mount', ''),
|
('ssh', 'host', 'buildah', 'mount', ''),
|
||||||
('ssh', 'host', 'buildah', 'run', '--user', 'root', '', '--', 'sh', '-euc', 'echo hi'),
|
('ssh', 'host', 'buildah', 'run', '--user', 'root', '', '--', 'sh', '-euc', 'echo hi'),
|
||||||
|
('ssh', 'host', 'buildah', 'umount', ''),
|
||||||
('ssh', 'host', 'buildah', 'rm', ''),
|
('ssh', 'host', 'buildah', 'rm', ''),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user