Exempt WebAssembly tools, since not yet in Ubuntu.

This commit is contained in:
Andrew Hamilton 2019-07-10 11:38:55 +10:00
parent 057e21869a
commit b0768a0467
2 changed files with 6 additions and 4 deletions

View file

@ -19,7 +19,7 @@ tools_for_extensions = [
[["php"], ["php7_syntax"]],
[["go"], ["go_vet", "golint", "godoc"]],
[["bash", "sh", "dash", "ksh"], ["shellcheck"]],
[["wasm"], ["wasm-validate", "wasm-objdump"]],
[["wasm"], ["wasm_validate", "wasm_objdump"]],
[["pdf"], ["pdf2txt"]],
[["html", "htm"], ["html_syntax", "html2text", "pandoc"]],
[["yaml", "yml"], ["yamllint"]],
@ -234,12 +234,12 @@ tools_for_extensions = [
url = "https://github.com/golang/lint"
command = "golint -set_exit_status"
[wasm-validate]
[wasm_validate]
dependencies = ["git/github.com/WebAssembly/wabt"]
url = "https://github.com/WebAssembly/wabt"
command = "wasm-validate"
[wasm-objdump]
[wasm_objdump]
dependencies = ["git/github.com/WebAssembly/wabt"]
url = "https://github.com/WebAssembly/wabt"
command = "wasm-objdump --disassemble"

View file

@ -23,7 +23,9 @@ ERIS_ROOT = os.path.dirname(__file__)
class ExecutablesTestCase(unittest.TestCase):
def test_executables_exist_in_path(self):
for tool in tools.tools_all():
# Tools not in ubuntu:
exceptions = {tools.wasm_validate, tools.wasm_objdump}
for tool in tools.tools_all() - exceptions:
if hasattr(tool, "executables"):
for executable in tool.executables:
with self.subTest(executable=executable, tool=tool):