提交 bb9fd6c7 编写于 作者: L lifeng68

CI: add testcases use host rootfs /

Signed-off-by: Nlifeng68 <lifeng68@huawei.com>
上级 37d40b36
......@@ -50,7 +50,7 @@ function do_test_t()
echo AA > /tmp/test_run_env
isula run --name $containername -itd -e AA=BB -e AA --env-file /tmp/test_run_env busybox
isula run --name $containername -itd -e AAA=BB -e BAA --env-file /tmp/test_run_env busybox
fn_check_eq "$?" "0" "run failed"
testcontainer $containername running
......@@ -61,6 +61,17 @@ function do_test_t()
isula rm $containername
fn_check_eq "$?" "0" "rm failed"
isula run --name $containername -itd --external-rootfs / --read-only none sh
fn_check_eq "$?" "0" "run container with host rootfs failed"
testcontainer $containername running
isula stop -t 0 $containername
fn_check_eq "$?" "0" "stop failed"
testcontainer $containername exited
isula rm $containername
fn_check_eq "$?" "0" "rm failed"
return $TC_RET_T
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册