Skip StartConsole test on user builds.

It runs a service with root privilege which can't be done on user
builds. Until the issue is resolved, skip the test on user builds.

Bug: 262090304
Test: N/A
Change-Id: I690ffbd7fdaef688a0c862e0c653e9b21e281ece
This commit is contained in:
Jiyong Park 2022-12-20 09:18:49 +09:00
parent ae412804ca
commit 5b7a51a59a

View file

@ -194,6 +194,10 @@ service A something
}
TEST(init, StartConsole) {
if (GetProperty("ro.build.type", "") == "user") {
GTEST_SKIP() << "Must run on userdebug/eng builds. b/262090304";
return;
}
std::string init_script = R"init(
service console /system/bin/sh
class core