Merge "Require root for StartConsole Test" am: 76607e5b07

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2528610

Change-Id: I1511468f235229cfff458cd61be26222a53979b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Daniel Rosenberg 2023-04-11 01:52:16 +00:00 committed by Automerger Merge Worker
commit 5433d7db5c

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