Commit 8912bb47 authored by Anas Nashif's avatar Anas Nashif
Browse files

twister: tests: set ZEPHYR_BASE using export

Use export to set ZEPHYR_BASE.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent fe674b4d
Loading
Loading
Loading
Loading
+2 −2
Changes for .github/workflows/twister_tests.yml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -51,16 +51,16 @@ jobs:

    - name: Run pytest for twisterlib
      env:
        ZEPHYR_BASE: ./
        ZEPHYR_TOOLCHAIN_VARIANT: zephyr
      run: |
        export ZEPHYR_BASE=${PWD}
        echo "Run twister tests"
        PYTHONPATH=./scripts/tests pytest ./scripts/tests/twister
    - name: Run pytest for pytest-twister-harness
      env:
        ZEPHYR_BASE: ./
        ZEPHYR_TOOLCHAIN_VARIANT: zephyr
        PYTHONPATH: ./scripts/pylib/pytest-twister-harness/src:${PYTHONPATH}
      run: |
        export ZEPHYR_BASE=${PWD}
        echo "Run twister tests"
        pytest ./scripts/pylib/pytest-twister-harness/tests