Revert "[utest] Don't hard-code /boot location for zircon test files"
This reverts commit 1651ebe6. Reason for revert: The change rolled too much into one commit and did not get anything green. It needs to be split up and reviewed properly. Original change's description: > [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 TBR=mcgrathr@google.com,geb@google.com,shayba@google.com Bug: BLD-463 Change-Id: I9d5a296eee311d48ac45a7dd8339d889aca18d4d
Showing
- zircon/system/ulib/runtests-utils/fuchsia-run-test.cpp 2 additions, 36 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 6 additions, 17 deletionszircon/system/ulib/zbi-bootfs/test/zbi-bootfs-test.cpp
- zircon/system/utest/devfs/fidl-tests.cpp 1 addition, 4 deletionszircon/system/utest/devfs/fidl-tests.cpp
- zircon/system/utest/fdio/BUILD.gn 0 additions, 1 deletionzircon/system/utest/fdio/BUILD.gn
- zircon/system/utest/fdio/fdio_atexit.cpp 2 additions, 5 deletionszircon/system/utest/fdio/fdio_atexit.cpp
- zircon/system/utest/fidl/run_with_handle_policy_tests.cpp 4 additions, 7 deletionszircon/system/utest/fidl/run_with_handle_policy_tests.cpp
- zircon/system/utest/runtests-utils/BUILD.gn 0 additions, 13 deletionszircon/system/utest/runtests-utils/BUILD.gn
- zircon/system/utest/runtests-utils/fuchsia-run-test.cpp 5 additions, 61 deletionszircon/system/utest/runtests-utils/fuchsia-run-test.cpp
- zircon/system/utest/runtests-utils/test-data 0 additions, 1 deletionzircon/system/utest/runtests-utils/test-data
- zircon/system/utest/spawn/spawn.cpp 69 additions, 101 deletionszircon/system/utest/spawn/spawn.cpp
- zircon/system/utest/vdso-variant/vdso-variant.c 2 additions, 12 deletionszircon/system/utest/vdso-variant/vdso-variant.c
Loading
Please register or sign in to comment