mirror of
https://github.com/Dasharo/open-source-firmware-validation.git
synced 2026-06-13 10:16:18 -07:00
dts: allow setting 'FW_STORE_URL_DEV' via cmdline arguments
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
This commit is contained in:
+6
-4
@@ -18,8 +18,8 @@ every user workflow (e.g. installation, update, etc.) for every platform.
|
||||
|
||||
Location in OSFV: `dts/dts-e2e.robot`.
|
||||
|
||||
These tests include modifications for DTS platform emulation so the tests
|
||||
could be launched on Qemu. Then every test case choose the workflow by
|
||||
These tests include modifications for DTS platform emulation, so the tests
|
||||
could be launched on QEMU. Then every test case choose the workflow by
|
||||
choosing DTS menu option, and provides credentials (if necessary). So, the
|
||||
start conditions are: platform configuration and workflow selection.
|
||||
|
||||
@@ -30,7 +30,7 @@ fails.
|
||||
Control variables:
|
||||
|
||||
* `dts_ipxe_link`: useful if you are testing DTS which is not released yet. Just
|
||||
put here a link to your script which will load your DTS. By default DTS is
|
||||
put here a link to your script which will load your DTS. By default, DTS is
|
||||
being booted from `dl.3mdeb.com`;
|
||||
* `dpp_email`, `dpp_password`: for DPP credentials, if tests need them.
|
||||
* `dts_config_ref`: can be set to custom dts-configs revision (default is
|
||||
@@ -38,6 +38,8 @@ Control variables:
|
||||
- branch name: `ref/heads/<branch_name>`
|
||||
- tag: `refs/tags/<tag_name>`
|
||||
- commit: `<commit_hash>`
|
||||
* `fw_store_url_dev`: can be set to custom server (e.g. local PC) from which to
|
||||
serve download artifacts.
|
||||
|
||||
Launching example:
|
||||
|
||||
@@ -46,7 +48,7 @@ robot -b command_log.txt -v snipeit:no -L TRACE -v config:qemu \
|
||||
-v rte_ip:127.0.0.1 -v boot_dts_from_ipxe_shell:True \
|
||||
-v dts_ipxe_link:http://192.168.0.102:8080/ipxe -v dpp_email:'EMAIL' \
|
||||
-v dpp_password:'PASSWORD' -v dts_config_ref:'refs/heads/develop' \
|
||||
-t "E2E006.002*" dts/dts-e2e.robot
|
||||
-v fw_store_url_dev:"192.168.4.48:1234" -t "E2E006.002*" dts/dts-e2e.robot
|
||||
```
|
||||
|
||||
> Note: replace `EMAIL` and `PASSWORD` with appropriate credentials if required.
|
||||
|
||||
@@ -179,6 +179,11 @@ Prepare DTS For Profile Generation
|
||||
... separator=${\n}
|
||||
Execute Command In Terminal echo '${dasharo_ectool}' >/tmp/bin/dasharo_ectool
|
||||
Execute Command In Terminal chmod +x /tmp/bin/dasharo_ectool
|
||||
${custom_fw_store}= Run Keyword And Return Status
|
||||
... Variable Should Exist $FW_STORE_URL_DEV
|
||||
IF ${custom_fw_store}
|
||||
Execute Command In Terminal export FW_STORE_URL_DEV="${FW_STORE_URL_DEV}"
|
||||
END
|
||||
Write Into Terminal PATH="/tmp/bin:$PATH" dts-boot
|
||||
|
||||
Get Profile After Workflow
|
||||
|
||||
@@ -451,6 +451,11 @@ Prepare Test Exports
|
||||
Set To Dictionary ${exports}
|
||||
... TEST_BIOS_VERSION=${dts_test_variables}[DTS_TEST_VERSIONS][${workflow}]
|
||||
... DTS_CONFIG_REF=${dts_config_ref_value}
|
||||
${custom_fw_store}= Run Keyword And Return Status
|
||||
... Variable Should Exist $FW_STORE_URL_DEV
|
||||
IF ${custom_fw_store}
|
||||
Set To Dictionary ${exports} FW_STORE_URL_DEV=${FW_STORE_URL_DEV}
|
||||
END
|
||||
FOR ${export_variable} ${export_value} IN &{exports_dict}
|
||||
Set To Dictionary ${exports} ${export_variable}=${export_value}
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user