Bug 1390699 - Don't try to test mozlint's --edit if echo isn't available; r=ahal

MozReview-Commit-ID: IMS91WthZtq
This commit is contained in:
Tom Prince
2017-08-15 16:45:00 -06:00
parent 8addb77d08
commit 2c288fc5d1

View File

@@ -5,6 +5,7 @@
import os
import sys
import py
import pytest
from mozlint import cli
@@ -38,6 +39,7 @@ def test_cli_run_with_fix(run, capfd):
assert out.endswith('{}\n')
@pytest.mark.skipif(not py.path.local.sysfind("echo"), reason="No `echo` executable found.")
def test_cli_run_with_edit(run, parser, capfd):
os.environ['EDITOR'] = 'echo'