Bugfix: omega-h stand-alone tests: ensure proper ordering (#44748)
This commit is contained in:
		| @@ -158,27 +158,20 @@ def flag_handler(self, name, flags): | |||||||
| 
 | 
 | ||||||
|         return (None, None, flags) |         return (None, None, flags) | ||||||
| 
 | 
 | ||||||
|     def test_osh_box(self): |     def test_mesh(self): | ||||||
|         """testing mesh construction""" |         """test construction, adaptation, and conversion of a mesh""" | ||||||
|         if self.spec.version < Version("9.34.1"): |         if self.spec.satisfies("@:9.34.0"): | ||||||
|             raise SkipTest("Package must be installed as version 9.34.1 or later") |             raise SkipTest("Package must be installed as version 9.34.1 or later") | ||||||
|         exe = which(join_path(self.prefix.bin, "osh_box")) |  | ||||||
|         options = ["1", "1", "1", "2", "2", "2", "box.osh"] |  | ||||||
|         exe(*options) |  | ||||||
| 
 | 
 | ||||||
|     def test_osh_scale(self): |         with test_part(self, "test_mesh_create", purpose="mesh construction"): | ||||||
|         """testing mesh adaptation""" |             exe = which(self.prefix.bin.osh_box) | ||||||
|         if self.spec.version < Version("9.34.1"): |             exe("1", "1", "1", "2", "2", "2", "box.osh") | ||||||
|             raise SkipTest("Package must be installed as version 9.34.1 or later") |  | ||||||
|         exe = which(join_path(self.prefix.bin, "osh_scale")) |  | ||||||
|         options = ["box.osh", "100", "box_100.osh"] |  | ||||||
|         actual = exe(*options, output=str.split, error=str.split) |  | ||||||
|         assert "adapting took" in actual |  | ||||||
| 
 | 
 | ||||||
|     def test_osh2vtk(self): |         with test_part(self, "test_mesh_adapt", purpose="mesh adaptation"): | ||||||
|         """testing mesh to vtu conversion""" |             exe = which(self.prefix.bin.osh_scale) | ||||||
|         if self.spec.version < Version("9.34.1"): |             actual = exe("box.osh", "100", "box_100.osh", output=str.split, error=str.split) | ||||||
|             raise SkipTest("Package must be installed as version 9.34.1 or later") |             assert "adapting took" in actual | ||||||
|         exe = which(join_path(self.prefix.bin, "osh2vtk")) | 
 | ||||||
|         options = ["box_100.osh", "box_100_vtk"] |         with test_part(self, "test_mesh_convert", purpose="mesh to vtu conversion"): | ||||||
|         exe(*options) |             exe = which(self.prefix.bin.osh2vtk) | ||||||
|  |             exe("box_100.osh", "box_100_vtk") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tamara Dahlgren
					Tamara Dahlgren