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:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user