From 63df0b72de7996ae6538130d45d3fa456e10fc3e Mon Sep 17 00:00:00 2001 From: Trecia Agoylo Date: Wed, 4 Oct 2023 16:26:14 +0800 Subject: [PATCH] tests: update test_cli Signed-off-by: Trecia Agoylo --- tests/test_cli.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 641bd121..da1b9304 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -33,19 +33,19 @@ def test_update_config(): board = "zynq-zc702-adv7511-ad9361-fmcomms2-3" c = con("localhost") o = c.local( - "nebula update-config board-config no-os-project --yamlfilename=" + "nebula update-config board-config board-name --yamlfilename=" + config + " --board-name=" + board ) - s = "ad9361" + s = "zynq-zc702-adv7511-ad9361-fmcomms2-3" assert s in o.stdout def test_dl_bootfiles(): config = os.path.join("nebula_config", "nebula.yaml") - board = "zynq-zc702-adv7511-ad9361-fmcomms2-3" - branch = "release" + board = "max32650_adxl355" + branch = "master" file = "noos" source_root = "artifactory.analog.com" source = "artifactory" @@ -65,10 +65,8 @@ def test_dl_bootfiles(): + file ) c.local(cmd) - try: - assert os.path.isfile("outs/system_top.hdf") - except Exception: - assert os.path.isfile("outs/system_top.xsa") + file = [_ for _ in os.listdir("outs") if _.endswith(".zip")] + assert len(file) >= 1 def test_show_log(): @@ -76,7 +74,7 @@ def test_show_log(): board = "zynq-zc702-adv7511-ad9361-fmcomms2-3" c = con("localhost") o = c.local( - "nebula show-log update-config board-config no-os-project --yamlfilename=" + "nebula show-log update-config board-config board-name --yamlfilename=" + config + " --board-name=" + board