Merge "Fix Errorf format string for error"
This commit is contained in:
@@ -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) {
|
func checkOverrides(t *testing.T, ctx *android.TestContext, singleton android.TestingSingleton, jsonPath string, expected []string) {
|
||||||
|
t.Helper()
|
||||||
out := singleton.MaybeOutput(jsonPath)
|
out := singleton.MaybeOutput(jsonPath)
|
||||||
content := android.ContentFromFileRuleForTests(t, out)
|
content := android.ContentFromFileRuleForTests(t, out)
|
||||||
|
|
||||||
var flags snapshotJsonFlags
|
var flags snapshotJsonFlags
|
||||||
if err := json.Unmarshal([]byte(content), &flags); err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user