Merge "Make lint HTML output deterministic" am: 27d220662f
am: 49f37cda8a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1665060 Change-Id: I654594507b7d26e8ef357c78b149fbe3bd606233
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