def test_23_run_reg50(self, mock_msg):
"""Test create, ps, rm"""
os.environ["UDOCKER_CONTAINERS"] = "/tmp/udocker_containers"
do_action([UDOCKER, "rm", "busyTMP"])
do_run(self, mock_msg,
[UDOCKER, "create", "--name=busyTMP", "busybox"], None, None)
do_run(self, mock_msg,
[UDOCKER, "ps"], " busyTMP", None)
do_run(self, mock_msg,
[UDOCKER, "ps"], "!busyRUN", None)
# delete not owner (regression of #50)
do_run(self, mock_msg,
[UDOCKER, "rm", "busyTMP"], "!Error", None)
os.unsetenv("UDOCKER_CONTAINERS")
评论列表
文章目录