From 07f0543a9f7bcc1ec8c13ac708ce69f2ff345096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Iwanicki?= Date: Mon, 27 Apr 2026 11:33:03 +0200 Subject: [PATCH] dts: allow setting 'FW_STORE_URL_DEV' via cmdline arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MichaƂ Iwanicki --- docs/dts-tests.md | 10 ++++++---- dts/dts-gen-profile.robot | 5 +++++ lib/dts-lib.robot | 5 +++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/dts-tests.md b/docs/dts-tests.md index 2ed61e4c..b4d6e65b 100644 --- a/docs/dts-tests.md +++ b/docs/dts-tests.md @@ -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/` - tag: `refs/tags/` - commit: `` +* `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. diff --git a/dts/dts-gen-profile.robot b/dts/dts-gen-profile.robot index 53114806..f15e310f 100644 --- a/dts/dts-gen-profile.robot +++ b/dts/dts-gen-profile.robot @@ -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 diff --git a/lib/dts-lib.robot b/lib/dts-lib.robot index 973b3a71..e8decd2a 100644 --- a/lib/dts-lib.robot +++ b/lib/dts-lib.robot @@ -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