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

Commit 2e353768 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Fix install_symlink

parent 108bd003
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -586,6 +586,18 @@ func FixtureExpectsAllErrorsToMatchAPattern(patterns []string) FixtureErrorHandl
	})
}

// FixtureExpectsOneErrorPattern returns an error handler that will cause the test to fail
// if there is more than one error or the error does not match the pattern.
//
// If the test fails this handler will call `result.FailNow()` which will exit the goroutine within
// which the test is being run which means that the RunTest() method will not return.
func FixtureExpectsOneErrorPattern(pattern string) FixtureErrorHandler {
	return FixtureCustomErrorHandler(func(t *testing.T, result *TestResult) {
		t.Helper()
		CheckErrorsAgainstExpectations(t, result.Errs, []string{pattern})
	})
}

// FixtureCustomErrorHandler creates a custom error handler
func FixtureCustomErrorHandler(function func(t *testing.T, result *TestResult)) FixtureErrorHandler {
	return simpleErrorHandler{
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ func (m *InstallSymlink) GenerateAndroidBuildActions(ctx android.ModuleContext)
	}

	out := android.PathForModuleOut(ctx, "out.txt")
	android.WriteFileRuleVerbatim(ctx, out, "")
	android.WriteFileRule(ctx, out, "")
	m.output = out

	name := filepath.Base(m.properties.Installed_location)