mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Assert against the return code of the executed commands
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
31f50159a6
commit
676a3f39cf
1 changed files with 4 additions and 2 deletions
|
@ -229,8 +229,10 @@ def docker_master(
|
|||
# container.container_start_check(confirm_container_started, container)
|
||||
with container.started() as factory:
|
||||
for user in ("bob", "fnord"):
|
||||
container.run(f"adduser {user}")
|
||||
container.run(f"passwd -d {user}")
|
||||
ret = container.run(f"adduser {user}")
|
||||
assert ret.returncode == 0
|
||||
ret = container.run(f"passwd -d {user}")
|
||||
assert ret.returncode == 0
|
||||
yield factory
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue