diff --git a/cli/lib/exec/spawn.js b/cli/lib/exec/spawn.js index 952fd2f96b73..66fd9b97c4f4 100644 --- a/cli/lib/exec/spawn.js +++ b/cli/lib/exec/spawn.js @@ -109,7 +109,7 @@ const GARBAGE_WARNINGS = [ isEGLDriverMessage, isXdgRuntimeError, isMesaZinkError, - isGlxDriverError + isGlxDriverError, ] const isGarbageLineWarning = (str) => { diff --git a/cli/test/lib/exec/spawn_spec.js b/cli/test/lib/exec/spawn_spec.js index 8b66d4a7579d..17f552cc90cc 100644 --- a/cli/test/lib/exec/spawn_spec.js +++ b/cli/test/lib/exec/spawn_spec.js @@ -114,18 +114,15 @@ describe('lib/exec/spawn', function () { }) it('returns true for XDG runtime dir warnings', () => { - const str = 'error: XDG_RUNTIME_DIR is invalid or not set' - expect(spawn.isGarbageLineWarning(str)).to.be.true + expect(spawn.isGarbageLineWarning('error: XDG_RUNTIME_DIR is invalid or not set')).to.be.true }) it('returns true for MESA ZINK errors', () => { - const str = 'MESA: error: ZINK: failed to choose pdev' - expect(spawn.isGarbageLineWarning(str)).to.be.true + expect(spawn.isGarbageLineWarning('MESA: error: ZINK: failed to choose pdev')).to.be.true }) it('returns true for GLX driver errors', () => { - const str = 'glx: failed to create drisw screen' - expect(spawn.isGarbageLineWarning(str)).to.be.true + expect(spawn.isGarbageLineWarning('glx: failed to create drisw screen')).to.be.true }) })