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:
commit
5433d7db5c
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue