From 467d95cef3c5b3b28b112a720a8e8f748d525277 Mon Sep 17 00:00:00 2001 From: "sfufa@google.com" Date: Mon, 25 Oct 2021 18:54:01 -0700 Subject: [PATCH] [Test] Introduce tracing to identify why pm create-user is failing Bug: 203817455 Test: presubmit Change-Id: Iccfa152bea7a914292d566d6dd3e58eb73c38aa4 --- tests/src/com/android/launcher3/ui/WorkProfileTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/src/com/android/launcher3/ui/WorkProfileTest.java b/tests/src/com/android/launcher3/ui/WorkProfileTest.java index fcb0b7fec4..41cdf0feef 100644 --- a/tests/src/com/android/launcher3/ui/WorkProfileTest.java +++ b/tests/src/com/android/launcher3/ui/WorkProfileTest.java @@ -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+");