Skip to content

Commit

Permalink
tests: update test_cli
Browse files Browse the repository at this point in the history
Signed-off-by: Trecia Agoylo <[email protected]>
  • Loading branch information
tagoylo committed Oct 4, 2023
1 parent 571612c commit 63df0b7
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -65,18 +65,16 @@ 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():
config = os.path.join("nebula_config", "nebula.yaml")
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
Expand Down

0 comments on commit 63df0b7

Please sign in to comment.