From 2030a192de27e9d7c8fdc587e5d0ae250550c9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=91=9E=E9=98=B3?= <2070216453@qq.com> Date: Mon, 29 May 2023 10:04:50 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=E6=96=B0=E5=A2=9E=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- file/testcase/file-test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/file/testcase/file-test.sh b/file/testcase/file-test.sh index 12cde52..61ebe6d 100755 --- a/file/testcase/file-test.sh +++ b/file/testcase/file-test.sh @@ -17,12 +17,16 @@ g_tmpdir="$(mktemp -d)" tc_setup() { msg "this is tc_setup" + #预置条件:系统正常运行,且已安装file软件包 assert_true yum install -y file return 0 } do_test() { msg "this is do_test" + + # @测试步骤:1:创建文件a.txt,并执行file -b a.txt + # @预期结果:1:成功获取到a.txt的file -b结果 assert_ture touch a.txt echo "test" >> a.txt assert_true file -b a.txt -- Gitee