summaryrefslogtreecommitdiff
path: root/cc/testing.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/testing.go')
-rw-r--r--cc/testing.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/testing.go b/cc/testing.go
index 6a655db9e..992069b5c 100644
--- a/cc/testing.go
+++ b/cc/testing.go
@@ -739,12 +739,13 @@ func AssertExcludeFromRecoverySnapshotIs(t *testing.T, ctx *android.TestContext,
}
func checkOverrides(t *testing.T, ctx *android.TestContext, singleton android.TestingSingleton, jsonPath string, expected []string) {
+ t.Helper()
out := singleton.MaybeOutput(jsonPath)
content := android.ContentFromFileRuleForTests(t, out)
var flags snapshotJsonFlags
if err := json.Unmarshal([]byte(content), &flags); err != nil {
- t.Errorf("Error while unmarshalling json %q: %w", jsonPath, err)
+ t.Errorf("Error while unmarshalling json %q: %s", jsonPath, err.Error())
return
}