Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 467d95ce authored by sfufa@google.com's avatar sfufa@google.com
Browse files

[Test] Introduce tracing to identify why pm create-user is failing

Bug: 203817455
Test: presubmit
Change-Id: Iccfa152bea7a914292d566d6dd3e58eb73c38aa4
parent 85da1db1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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+");