Merge "Require root for StartConsole Test" am: 76607e5b07 am: 5433d7db5c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2528610 Change-Id: I0975582dcea7c893bc76d2a0b8195bc6eb6f3aec Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
eb0ce2a22f
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…
Add table
Reference in a new issue