Skip to content

Commit

Permalink
purge loaded modules in between test cases in test_intel_toolchain_on…
Browse files Browse the repository at this point in the history
…eapi
  • Loading branch information
boegel committed Dec 8, 2022
1 parent eaabfa4 commit e5e58d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/framework/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,7 @@ def test_intel_toolchain_oneapi(self):
self.assertEqual(os.getenv('F90'), 'ifort')
self.assertEqual(os.getenv('FC'), 'ifort')

self.modtool.purge()
tc = self.get_toolchain('intel-compilers', version='2022.2.0')
tc.set_options({'oneapi_fortran': True})
tc.prepare()
Expand All @@ -1468,6 +1469,7 @@ def test_intel_toolchain_oneapi(self):
self.assertEqual(os.getenv('F90'), 'ifx')
self.assertEqual(os.getenv('FC'), 'ifx')

self.modtool.purge()
tc = self.get_toolchain('intel-compilers', version='2022.2.0')
tc.set_options({'oneapi_c_cxx': False, 'oneapi_fortran': True})
tc.prepare()
Expand All @@ -1477,6 +1479,7 @@ def test_intel_toolchain_oneapi(self):
self.assertEqual(os.getenv('F90'), 'ifx')
self.assertEqual(os.getenv('FC'), 'ifx')

self.modtool.purge()
tc = self.get_toolchain('intel', version='2021b')
tc.set_options({'oneapi_c_cxx': True})
tc.prepare()
Expand All @@ -1486,6 +1489,7 @@ def test_intel_toolchain_oneapi(self):
self.assertEqual(os.getenv('F90'), 'ifort')
self.assertEqual(os.getenv('FC'), 'ifort')

self.modtool.purge()
tc = self.get_toolchain('intel', version='2021b')
tc.set_options({'oneapi_fortran': True})
tc.prepare()
Expand All @@ -1495,6 +1499,7 @@ def test_intel_toolchain_oneapi(self):
self.assertEqual(os.getenv('F90'), 'ifx')
self.assertEqual(os.getenv('FC'), 'ifx')

self.modtool.purge()
tc = self.get_toolchain('intel', version='2021b')
tc.set_options({'oneapi_c_cxx': True, 'oneapi_fortran': True})
tc.prepare()
Expand Down

0 comments on commit e5e58d1

Please sign in to comment.