Merge "Make lint HTML output deterministic" am: 27d220662f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1665060 Change-Id: I1fb8c6e93d633e57a264479f80f983d5a3dd89ce
This commit is contained in:
@@ -392,6 +392,9 @@ func (l *linter) lint(ctx android.ModuleContext) {
|
|||||||
|
|
||||||
rule.Command().Text("rm -rf").Flag(lintPaths.cacheDir.String()).Flag(lintPaths.homeDir.String())
|
rule.Command().Text("rm -rf").Flag(lintPaths.cacheDir.String()).Flag(lintPaths.homeDir.String())
|
||||||
|
|
||||||
|
// The HTML output contains a date, remove it to make the output deterministic.
|
||||||
|
rule.Command().Text(`sed -i.tmp -e 's|Check performed at .*\(</nav>\)|\1|'`).Output(html)
|
||||||
|
|
||||||
rule.Build("lint", "lint")
|
rule.Build("lint", "lint")
|
||||||
|
|
||||||
l.outputs = lintOutputs{
|
l.outputs = lintOutputs{
|
||||||
|
Reference in New Issue
Block a user