Merge "Require root for StartConsole Test"

This commit is contained in:
Daniel Rosenberg 2023-04-11 01:14:17 +00:00 committed by Gerrit Code Review
commit 76607e5b07
1 changed files with 4 additions and 0 deletions

View File

@ -204,6 +204,10 @@ TEST(init, StartConsole) {
GTEST_SKIP() << "Must run on userdebug/eng builds. b/262090304";
return;
}
if (getuid() != 0) {
GTEST_SKIP() << "Must be run as root.";
return;
}
std::string init_script = R"init(
service console /system/bin/sh
class core