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

Fix Errorf format string for error

Also go ahead and mark `checkOverrides` as a `t.Helper()`

Test: go test
Change-Id: I368aabf4d032c02773416f27affa12eb40e77b40
parent 298b6b0c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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
	}