X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=test%2Fconfig%2Foption_edit.py;h=f732dcf28e3b7407bfc838143f657da0377ad0b7;hb=e4906af5db78d7b0f7ff402b673d5702e2dee445;hp=c156419a9fdad05dc025f6c47aef276af42be0a8;hpb=c599cfed181749f9e0ef99923cb67186c9a0c212;p=tools%2Fsat.git diff --git a/test/config/option_edit.py b/test/config/option_edit.py index c156419..f732dcf 100644 --- a/test/config/option_edit.py +++ b/test/config/option_edit.py @@ -28,7 +28,7 @@ sys.path.append(os.path.join(testdir, '..', '..')) sys.path.append(os.path.join(testdir, '..', '_testTools')) from salomeTools import Sat -from tools import check_proc_existence_and_kill +from tools import check_proc_existence_and_kill_multi import HTMLTestRunner sleep_time = 3 @@ -44,13 +44,14 @@ class TestConfig(unittest.TestCase): OK = "KO" sat = Sat("-oUSER.editor='cooledit'") + sat.config() cmd_config = threading.Thread(target=sat.config, args=('-e',)) cmd_config.start() time.sleep(sleep_time) editor = sat.cfg.USER.editor - pid = check_proc_existence_and_kill(editor + ".*" + "salomeTools\.pyconf") + pid = check_proc_existence_and_kill_multi(editor + ".*" + "salomeTools\.pyconf", 10) if pid: OK = "OK" @@ -64,13 +65,14 @@ class TestConfig(unittest.TestCase): OK = "KO" sat = Sat("-oUSER.editor='cooledit'") + sat.config() cmd_config = threading.Thread(target=sat.config, args=('appli-test -e',)) cmd_config.start() time.sleep(sleep_time) editor = sat.cfg.USER.editor - pid = check_proc_existence_and_kill(editor + ".*" + "appli-test\.pyconf") + pid = check_proc_existence_and_kill_multi(editor + ".*" + "appli-test\.pyconf", 10) if pid: OK = "OK"