Skip to content

Commit

Permalink
Fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Nov 27, 2023
1 parent e98930e commit 38cf60e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions scripts/build_and_test/build_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ def build_all_devices(devices: Devices, sdk_path: Path, app_json: dict, workdir:

stax_output, stax_log = build_device(devices.stax, variant_param, app_build_path, sdk_path, app_json)

if nanos_output:
if nanos_output and devices.nanos.selected:
output["build"]["nanos"] = nanos_output
if nanosp_output:
if nanosp_output and devices.nanosp.selected:
output["build"]["nanosp"] = nanosp_output
if nanox_output:
if nanox_output and devices.nanox.selected:
output["build"]["nanox"] = nanox_output
if stax_output:
if stax_output and devices.stax.selected:
output["build"]["stax"] = stax_output

log = nanos_log + nanosp_log + nanox_log + stax_log
Expand Down
8 changes: 4 additions & 4 deletions scripts/build_and_test/scan_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ def scan_all_devices(devices: Devices, sdk_path: Path, app_json: dict, workdir:

stax_output, stax_log = scan_device(devices.stax, variant_param, app_build_path, sdk_path, app_json)

if nanos_output:
if nanos_output and devices.nanos.selected:
output["scan"]["nanos"] = nanos_output
if nanosp_output:
if nanosp_output and devices.nanosp.selected:
output["scan"]["nanosp"] = nanosp_output
if nanox_output:
if nanox_output and devices.nanox.selected:
output["scan"]["nanox"] = nanox_output
if stax_output:
if stax_output and devices.stax.selected:
output["scan"]["stax"] = stax_output

log = nanos_log + nanosp_log + nanox_log + stax_log
Expand Down
8 changes: 4 additions & 4 deletions scripts/build_and_test/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ def test_all_devices(devices: Devices, sdk_path: Path, app_json: dict, workdir:
stax_output, stax_log = test_device(devices.stax, variant_param, app_build_path, app_test_path,
sdk_path, extra_flags, blacklist, test_params)

if nanos_output:
if nanos_output and devices.nanos.selected:
output["test"]["nanos"] = nanos_output
if nanosp_output:
if nanosp_output and devices.nanosp.selected:
output["test"]["nanosp"] = nanosp_output
if nanox_output:
if nanox_output and devices.nanox.selected:
output["test"]["nanox"] = nanox_output
if stax_output:
if stax_output and devices.stax.selected:
output["test"]["stax"] = stax_output
print(output)

Expand Down

0 comments on commit 38cf60e

Please sign in to comment.