Merge "init: require root for oneshot_on test" into rvc-dev
This commit is contained in:
commit
d456db6d50
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ using android::base::WaitForProperty;
|
|||
using namespace std::literals;
|
||||
|
||||
TEST(init, oneshot_on) {
|
||||
if (getuid() != 0) {
|
||||
GTEST_SKIP() << "Skipping test, must be run as root.";
|
||||
return;
|
||||
}
|
||||
|
||||
// Bootanim shouldn't be running once the device has booted.
|
||||
ASSERT_EQ("stopped", GetProperty("init.svc.bootanim", ""));
|
||||
|
||||
|
|
Loading…
Reference in a new issue