libfs_avb: updating run_tests.sh

Adding `--host` for host-side test cases with atest, so we
still can run the test when there is no device connected.

Otherwise, TradeFed will emit the follow error:
  TradeFed subprocess exited early with exit code=7(NO_DEVICE_ALLOCATED).

Bug: None
Test: ./system/core/fs_mgr/libfs_avb/run_tests.sh
Change-Id: I0a593e6dc42861c2dc9cfff308cd7fd76b39ef2c
This commit is contained in:
Bowgo Tsai 2022-01-10 15:49:52 +08:00
parent f56e0dbf33
commit 68c97406a2

View file

@ -1,8 +1,13 @@
#!/bin/sh
#
# Run host tests
atest libfs_avb_test # Tests public libfs_avb APIs.
atest libfs_avb_internal_test # Tests libfs_avb private APIs.
atest --host libfs_avb_test # Tests public libfs_avb APIs.
# Tests libfs_avb private APIs.
# The tests need more time to finish, so increase the timeout to 5 mins.
# The default timeout is only 60 seconds.
atest --host libfs_avb_internal_test -- --test-arg \
com.android.tradefed.testtype.HostGTest:native-test-timeout:5m
# Run device tests
atest libfs_avb_device_test # Test public libfs_avb APIs on a device.