From 1e1557b34d4517481773018b160c466048437303 Mon Sep 17 00:00:00 2001 From: Chris Hansen Date: Wed, 22 Nov 2023 11:28:17 -0500 Subject: [PATCH] Set working directory in TokaMaker tests --- src/tests/physics/test_TokaMaker.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tests/physics/test_TokaMaker.py b/src/tests/physics/test_TokaMaker.py index 410e9cb..83c445a 100644 --- a/src/tests/physics/test_TokaMaker.py +++ b/src/tests/physics/test_TokaMaker.py @@ -14,6 +14,7 @@ def mp_run(target,args,timeout=30): + os.chdir(test_dir) mp_q = multiprocessing.Queue() p = multiprocessing.Process(target=target, args=args + (mp_q,)) p.start() @@ -313,7 +314,6 @@ def create_mesh(): coil_dict = gs_mesh.get_coils() cond_dict = gs_mesh.get_conductors() save_gs_mesh(mesh_pts,mesh_lc,mesh_reg,coil_dict,cond_dict,'ITER_mesh.h5') - print(os.getcwd(),os.listdir()) if not os.path.exists('ITER_mesh.h5'): try: create_mesh() @@ -419,9 +419,8 @@ def validate_ITER(results,dict_exp): # Test runners for ITER test cases -@pytest.mark.parametrize("order", (2,3))#3,4)) +@pytest.mark.parametrize("order", (2,3))#,4)) def test_ITER(order): - print(os.getcwd(),os.listdir()) exp_dict = { 'Ip': 15599996.700479196, 'Ip_centroid': [6.20274133, 0.5296048],