Skip to content

Commit

Permalink
unit test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
amaltaro committed Apr 12, 2022
1 parent 6275361 commit dacc5b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/python/WMCore_t/BossAir_t/BasePlugin_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ def testScramArchToOS(self):
self.assertEqual(bp.scramArchtoRequiredOS('cc8_blah_blah'), 'rhel8')
self.assertEqual(bp.scramArchtoRequiredOS('cs8_blah_blah'), 'rhel8')
self.assertEqual(bp.scramArchtoRequiredOS('alma8_blah_blah'), 'rhel8')
self.assertEqual(bp.scramArchtoRequiredOS('el88_blah_blah'), 'rhel8')
self.assertEqual(bp.scramArchtoRequiredOS('el8_blah_blah'), 'rhel8')

self.assertEqual(bp.scramArchtoRequiredOS(None), 'any')
self.assertEqual(bp.scramArchtoRequiredOS(""), 'any')
self.assertEqual(bp.scramArchtoRequiredOS([]), 'any')

self.assertEqual(bp.scramArchtoRequiredOS(['slc6_blah_blah', 'slc7_blah_blah']), 'rhel6,rhel7')
self.assertEqual(bp.scramArchtoRequiredOS(['slc6_blah_blah', 'alma8_blah_blah']), 'rhel6,rhel8')

# unexpected case, a ScramArch being requested without the map implemented
self.assertEqual(bp.scramArchtoRequiredOS('slc1_blah_blah'), '')
return

def testScramArchtoRequiredArch(self):
Expand Down

0 comments on commit dacc5b9

Please sign in to comment.