Salome HOME
Improve the way to get the product definitions. Fix a bug of the log command
[tools/sat.git] / test / log / launch_browser.py
index c0cf72c4d685b39da30a7da4e627b3d696f76bdf..793e433bb5c26159670767dab29a05005608a52a 100644 (file)
@@ -56,7 +56,7 @@ class TestLog(unittest.TestCase):
         time.sleep(sleep_time)
 
         browser = sat.cfg.USER.browser
-        pid = check_proc_existence_and_kill(browser + ".*" + "xml")
+        pid = check_proc_existence_and_kill(browser + ".*" + "hat\.xml")
 
         if pid:
             OK = "OK"
@@ -330,14 +330,13 @@ class TestLog(unittest.TestCase):
 
         sat = Sat("-oUSER.browser='konqueror'")
         time.sleep(sleep_time)
-        time.sleep(5)
         cmd_log = threading.Thread(target=sat.log, args=('--full',))
         cmd_log.start()
 
         time.sleep(sleep_time)
 
         browser = sat.cfg.USER.browser
-        check_proc_existence_and_kill(browser + ".*" + "xml")
+        check_proc_existence_and_kill(browser + ".*" + "hat\.xml")
         
         # Read and check the hat.xml file contains at least one log file corresponding to log
         hatFilePath = os.path.join(sat.cfg.SITE.log.log_dir, "hat.xml")