提交 470ca162 编写于 作者: O openharmony_ci 提交者: Gitee

!40 fuzz generate commond auto create directory

Merge pull request !40 from NicoYam/master
......@@ -77,11 +77,11 @@
gen -t TESTTYPE -fn FUZZERNAME -dp DIRECTORYPATH
```
| 参数 | 说明 | 备注 |
| ---- | -------------- | -------------------------------------------------------- |
| -t | 测试类型 | 目前仅支持"FUZZ" |
| -fn | DTFuzz名称 | 为显式区分DTFuzz,名称必须以"fuzzer"结尾 |
| -dp | DTFuzz生成路径 | 执行命令前需要手动创建fuzztest目录和对应形态目录如common |
| 参数 | 说明 | 备注 |
| ---- | -------------- | ---------------------------------------- |
| -t | 测试类型 | 目前仅支持"FUZZ" |
| -fn | DTFuzz名称 | 为显式区分DTFuzz,名称必须以"fuzzer"结尾 |
| -dp | DTFuzz生成路径 | 路径不存在则自动创建目录 |
3. gen命令示例,-t、-fn和-dp均为必选项
......
......@@ -53,10 +53,9 @@ class Gen(object):
fuzz_path = os.path.join(sys.source_code_root_path, options.dirpath)
LOG.info("fuzz_path = %s" % fuzz_path)
if not os.path.exists(fuzz_path):
LOG.error("%s is not exist." % fuzz_path)
return
os.makedirs(fuzz_path)
LOG.info("make folder %s" % fuzz_path)
LOG.info("%s exist." % fuzz_path)
command = [sys.executable, helper_path, 'generate',
options.fuzzername, fuzz_path]
LOG.info("command %s" % command)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册