diff --git a/core/runner.js b/core/runner.js index 53adb821a482..94a567929245 100644 --- a/core/runner.js +++ b/core/runner.js @@ -121,8 +121,7 @@ class Runner { // LHR has now been localized. const lhr = /** @type {LH.Result} */ (i18nLhr); - // Save lhr to ./latest-run, but only if -GA is used. - if (settings.gatherMode && settings.auditMode) { + if (settings.auditMode) { const path = Runner._getDataSavePath(settings); assetSaver.saveLhr(lhr, path); } diff --git a/core/test/runner-test.js b/core/test/runner-test.js index 63fe224bcb08..5109c1a89c7f 100644 --- a/core/test/runner-test.js +++ b/core/test/runner-test.js @@ -144,7 +144,7 @@ describe('Runner', () => { expect(loadArtifactsSpy).toHaveBeenCalled(); expect(gatherRunnerRunSpy).not.toHaveBeenCalled(); expect(saveArtifactsSpy).not.toHaveBeenCalled(); - expect(saveLhrSpy).not.toHaveBeenCalled(); + expect(saveLhrSpy).toHaveBeenCalled(); expect(runAuditSpy).toHaveBeenCalled(); }); });