Merge "[Test] Introduce tracing to identify why pm create-user is failing" into sc-v2-dev am: f45ec6dc1d

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16120082

Change-Id: I368d9963c9bcd734b5fadc59f429cebe68ba8507
This commit is contained in:
Hyunyoung Song
2021-10-31 22:16:00 +00:00
committed by Automerger Merge Worker
@@ -22,6 +22,7 @@ import static com.android.launcher3.allapps.AllAppsStore.DEFER_UPDATES_TEST;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import android.util.Log;
import android.view.View;
import com.android.launcher3.R;
@@ -51,6 +52,7 @@ public class WorkProfileTest extends AbstractLauncherUiTest {
String output =
mDevice.executeShellCommand(
"pm create-user --profileOf 0 --managed TestProfile");
Log.d("b/203817455", "pm create-user; output: " + output);
assertTrue("Failed to create work profile", output.startsWith("Success"));
String[] tokens = output.split("\\s+");