Skip to content

Commit

Permalink
Make builder unit tests pass in vscode image. (#32815)
Browse files Browse the repository at this point in the history
vscode image defines more environment variables. Provide
overrides for these variables in unit tests, so that they pass
for vscode image as well and they do not get picked up
from the system env.

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
andy31415 and andreilitvin authored Apr 3, 2024
1 parent e53dca8 commit c172e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/build/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def build_actual_output(root: str, out: str, args: List[str]) -> List[str]:
'TI_SYSCONFIG_ROOT': 'TEST_TI_SYSCONFIG_ROOT',
'JAVA_PATH': 'TEST_JAVA_PATH',
'GSDK_ROOT': 'TEST_GSDK_ROOT',
'WISECONNECT_SDK_ROOT': 'TEST_WISECONNECT_SDK_ROOT',
'WIFI_SDK_ROOT': 'TEST_WIFI_SDK_ROOT',
})

retval = subprocess.run([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
cd "{root}"

# Generating efr32-brd4161a-light-rpc-no-version
gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/silabs '--args=silabs_board="BRD4161A" is_debug=false import("//with_pw_rpc.gni") efr32_sdk_root="TEST_GSDK_ROOT" openthread_root="TEST_GSDK_ROOT/util/third_party/openthread"' {out}/efr32-brd4161a-light-rpc-no-version
gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/silabs '--args=silabs_board="BRD4161A" is_debug=false import("//with_pw_rpc.gni") efr32_sdk_root="TEST_GSDK_ROOT" openthread_root="TEST_GSDK_ROOT/util/third_party/openthread" wiseconnect_sdk_root="TEST_WISECONNECT_SDK_ROOT" wifi_sdk_root="TEST_WIFI_SDK_ROOT"' {out}/efr32-brd4161a-light-rpc-no-version

# Building efr32-brd4161a-light-rpc-no-version
ninja -C {out}/efr32-brd4161a-light-rpc-no-version

0 comments on commit c172e30

Please sign in to comment.