Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68c97406 authored by Bowgo Tsai's avatar Bowgo Tsai
Browse files

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
parent f56e0dbf
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
#!/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.