[utest] Don't hard-code /boot location for zircon test files
This change fixes the zircon tests that were failing in the `bringup` build. The tests were failing because they had hardcoded paths at "/boot/..." which failed when the tests were run from "/system". The fix is for runtests to pass a TEST_ROOT_DIR environment variable, which is "/system" or "/boot" depending on the location of the test. The tests use this variable instead of hardcoding the path. Bug: BLD-463 #comment fix broken tests Change-Id: Id6478f68600a55f13dc8c0bde19253c909a03694
Showing
- zircon/system/ulib/runtests-utils/fuchsia-run-test.cpp 36 additions, 2 deletionszircon/system/ulib/runtests-utils/fuchsia-run-test.cpp
- zircon/system/ulib/runtests-utils/include/runtests-utils/fuchsia-run-test.h 1 addition, 1 deletion.../runtests-utils/include/runtests-utils/fuchsia-run-test.h
- zircon/system/ulib/zbi-bootfs/test/zbi-bootfs-test.cpp 17 additions, 6 deletionszircon/system/ulib/zbi-bootfs/test/zbi-bootfs-test.cpp
- zircon/system/utest/devfs/fidl-tests.cpp 4 additions, 1 deletionzircon/system/utest/devfs/fidl-tests.cpp
- zircon/system/utest/fdio/BUILD.gn 1 addition, 0 deletionszircon/system/utest/fdio/BUILD.gn
- zircon/system/utest/fdio/fdio_atexit.cpp 5 additions, 2 deletionszircon/system/utest/fdio/fdio_atexit.cpp
- zircon/system/utest/fidl/run_with_handle_policy_tests.cpp 7 additions, 4 deletionszircon/system/utest/fidl/run_with_handle_policy_tests.cpp
- zircon/system/utest/runtests-utils/BUILD.gn 13 additions, 0 deletionszircon/system/utest/runtests-utils/BUILD.gn
- zircon/system/utest/runtests-utils/fuchsia-run-test.cpp 61 additions, 5 deletionszircon/system/utest/runtests-utils/fuchsia-run-test.cpp
- zircon/system/utest/runtests-utils/test-data 1 addition, 0 deletionszircon/system/utest/runtests-utils/test-data
- zircon/system/utest/spawn/spawn.cpp 101 additions, 69 deletionszircon/system/utest/spawn/spawn.cpp
- zircon/system/utest/vdso-variant/vdso-variant.c 12 additions, 2 deletionszircon/system/utest/vdso-variant/vdso-variant.c
Loading
Please register or sign in to comment