Merge "init: require root for oneshot_on test" into rvc-dev

This commit is contained in:
TreeHugger Robot 2020-03-31 15:33:51 +00:00 committed by Android (Google) Code Review
commit d456db6d50

View file

@ -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", ""));