aboutsummaryrefslogtreecommitdiff
path: root/tests/cli/testllvmpush.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli/testllvmpush.py')
-rw-r--r--tests/cli/testllvmpush.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/cli/testllvmpush.py b/tests/cli/testllvmpush.py
index a704185..0bcca66 100644
--- a/tests/cli/testllvmpush.py
+++ b/tests/cli/testllvmpush.py
@@ -15,7 +15,7 @@ from uuid import uuid4
from linaropy.cd import cd
from linaropy.git.clone import Clone
-from llvmtestcase import LLVMTestCase, debug
+from llvmtestcase import LLVMTestCase, require_command_arg, debug
class Testllvmpush(LLVMTestCase):
@@ -87,14 +87,10 @@ class Testllvmpush(LLVMTestCase):
with cd(repopath):
cls.run_quietly(["git", "worktree", "prune"])
+ @require_command_arg("--source-dir")
def test_source_dir_ir_compulsory(self):
"""Test that we get an error if we don't pass the source dir."""
- with self.assertRaises(subprocess.CalledProcessError) as context:
- output = self.run_with_output(self.llvm_push())
-
- self.assertRegex(
- str(context.exception.output),
- "(.*\n)*the following arguments are required: --source-dir(.*\n)*")
+ self.run_with_output(self.llvm_push())
def test_push(self):
with cd(self.llvm_src):