From 0d8e8e2be89b7e16e176e62e6eaff575c7a5626b Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 10 Sep 2024 18:43:53 +0200 Subject: [PATCH] MacrobenchmarkSample: fix small typo in clear data utility function --- .../kotlin/com/example/macrobenchmark/baselineprofile/Common.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacrobenchmarkSample/macrobenchmark/src/main/kotlin/com/example/macrobenchmark/baselineprofile/Common.kt b/MacrobenchmarkSample/macrobenchmark/src/main/kotlin/com/example/macrobenchmark/baselineprofile/Common.kt index 0eb564b..9738eaf 100644 --- a/MacrobenchmarkSample/macrobenchmark/src/main/kotlin/com/example/macrobenchmark/baselineprofile/Common.kt +++ b/MacrobenchmarkSample/macrobenchmark/src/main/kotlin/com/example/macrobenchmark/baselineprofile/Common.kt @@ -27,7 +27,7 @@ const val TARGET_PACKAGE = "com.example.macrobenchmark.target" * including the package name of the app under test. */ fun UiDevice.clearData(scope: MacrobenchmarkScope) { - val command = "pm clear $scope.packageName" + val command = "pm clear ${scope.packageName}" val output = executeShellCommand(command) // Assert.assertEquals("Success", output) } \ No newline at end of file