Add 2/3/4 parition index negative tests
@@ -1777,9 +1777,9 @@ class CLINTest(CLITestBase):
# Run the command, incrementally omitting arguments
self.exec_with_omit(command, 7)
- def test_cl_partitionlimit_missing_args(self):
+ def test_cl_2partitionlimit_missing_args(self):
"""
- Test -cl with -partitionindexlimit and missing arguments.
+ Test -cl with -2partitionindexlimit and missing arguments.
"""
# Build a valid command
command = [
@@ -1787,7 +1787,37 @@ class CLINTest(CLITestBase):
self.get_ref_image_path("LDR", "input", "A"),
self.get_tmp_image_path("LDR", "comp"),
"4x4", "-fast",
- "-partitionindexlimit", "3"]
+ "-2partitionindexlimit", "3"]
+
+ # Run the command, incrementally omitting arguments
+ self.exec_with_omit(command, 7)
+
+ def test_cl_3partitionlimit_missing_args(self):
+ """
+ Test -cl with -3partitionindexlimit and missing arguments.
+ """
+ # Build a valid command
+ command = [
+ self.binary, "-cl",
+ self.get_ref_image_path("LDR", "input", "A"),
+ self.get_tmp_image_path("LDR", "comp"),
+ "4x4", "-fast",
+ "-3partitionindexlimit", "3"]
+
+ # Run the command, incrementally omitting arguments
+ self.exec_with_omit(command, 7)
+
+ def test_cl_4partitionlimit_missing_args(self):
+ """
+ Test -cl with -4partitionindexlimit and missing arguments.
+ """
+ # Build a valid command
+ command = [
+ self.binary, "-cl",
+ self.get_ref_image_path("LDR", "input", "A"),
+ self.get_tmp_image_path("LDR", "comp"),
+ "4x4", "-fast",
+ "-4partitionindexlimit", "3"]
# Run the command, incrementally omitting arguments
self.exec_with_omit(command, 7)
