Skip to content

Commit

Permalink
Merge pull request #1548 from jedwards4b/improve_user_compset_error_c…
Browse files Browse the repository at this point in the history
…hecking

Improve user compset error checking
  • Loading branch information
jgfouca authored May 16, 2017
2 parents 98d386f + 2072c5d commit 9e81110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/tests/scripts_regression_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def test_a_createnewcase(self):
run_cmd_assert_result(self, "./case.build", from_dir=testdir)

with Case(testdir, read_only=True) as case:
case._compsetname = case.get_value("COMPSET")
case.set_comp_classes(case.get_values("COMP_CLASSES"))
primary = case._find_primary_component()
self.assertEqual(primary, "drv", msg="primary component test expected drv but got %s"%primary)
Expand Down Expand Up @@ -294,7 +295,7 @@ def test_a_createnewcase(self):
primary = case._find_primary_component()
self.assertEqual(primary, "wilma", msg="primary component test expected wilma but got %s"%primary)
# this is a "E" compset
case._compsetname.replace("XOCN","DOCN%SOM")
case._compsetname = case._compsetname.replace("XOCN","DOCN%SOM")
primary = case._find_primary_component()
self.assertEqual(primary, "allactive", msg="primary component test expected allactive but got %s"%primary)
# finally a "B" compset
Expand Down

0 comments on commit 9e81110

Please sign in to comment.