aboutsummaryrefslogtreecommitdiff
path: root/tests/cli/testllvmbuild.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli/testllvmbuild.py')
-rw-r--r--tests/cli/testllvmbuild.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/cli/testllvmbuild.py b/tests/cli/testllvmbuild.py
index a395d0f..e7295b0 100644
--- a/tests/cli/testllvmbuild.py
+++ b/tests/cli/testllvmbuild.py
@@ -10,7 +10,7 @@ from shutil import rmtree
from subprocess import CalledProcessError
from tempfile import mkdtemp
-from llvmtestcase import LLVMTestCase, debug
+from llvmtestcase import LLVMTestCase, require_command_arg, debug
def create_empty_file(path):
@@ -29,14 +29,10 @@ class Testllvmbuild(LLVMTestCase):
def tearDown(self):
rmtree(self.buildDir)
+ @require_command_arg("--build-dir")
def test_build_dir_is_compulsory(self):
"""Test that we get an error if we don't pass the build dir."""
- with self.assertRaises(CalledProcessError) as context:
- self.run_with_output(self.llvm_build())
-
- self.assertRegex(
- str(context.exception.output),
- "(.*\n)*the following arguments are required: --build-dir(.*\n)*")
+ self.run_with_output(self.llvm_build())
def test_dry_run(self):
"""