FAILED: suites/acts.zip
python ../../test/xts/tools/build/suite.py archive_suite --suite_path /root/code/code_3/out/BearPi-HM_Nano/suites/acts --testcases_name testcases --prebuilts_resource , --build_enabled true
Traceback (most recent call last):
File "/root/code/code_3/out/BearPi-HM_Nano/../../test/xts/tools/build/suite.py", line 284, in <module>
sys.exit(main(sys.argv[1:]))
File "/root/code/code_3/out/BearPi-HM_Nano/../../test/xts/tools/build/suite.py", line 279, in main
func()
File "/root/code/code_3/out/BearPi-HM_Nano/../../test/xts/tools/build/suite.py", line 247, in archive_suite
shutil.make_archive(suite_path, "zip", suite_root_path, archive_name)
File "/usr/local/lib/python3.9/shutil.py", line 1072, in make_archive
raise ValueError("unknown archive format '%s'" % format) from None
ValueError: unknown archive format 'zip'
[138/198] AR libs/libdiscovery.a
[139/198] cross compiler obj/kernel/liteos_m/components/cmsis/cmsis_liteos.o
ninja: build stopped: subcommand failed.
you can check build log in /root/code/code_3/out/BearPi-HM_Nano/build.log
/root/HarmonyOS/tools/ninja/ninja -w dupbuild=warn -C /root/code/code_3/out/BearPi-HM_Nano failed, return code is 1
usage:
python build.py ipcamera_hi3516dv300
python build.py ipcamera_hi3518ev300
python build.py wifiiot
positional arguments:
product Name of the product
optional arguments:
-h, --help show this help message and exit
-b BUILD_TYPE, --build_type BUILD_TYPE
release or debug version.
-t [TEST ...], --test [TEST ...]
Compile test suit
-n, --ndk Compile ndk
自己搭建的环境 但是编译之后出现这些,太难受了。