Function runs command to refresh selenoid configuration :return: true if command execution for selenoid reload is successful else false
()
| 156 | |
| 157 | |
| 158 | def reload_selenoid_config(): |
| 159 | """ |
| 160 | Function runs command to refresh selenoid configuration |
| 161 | :return: true if command execution for selenoid reload is successful |
| 162 | else false |
| 163 | """ |
| 164 | command = 'docker kill -s HUP selenoid' |
| 165 | reload_successful = False |
| 166 | try: |
| 167 | subprocess.call([command], shell=True, stdout=subprocess.PIPE) |
| 168 | print(" Selenoid Configuration is reloaded.") |
| 169 | reload_successful = True |
| 170 | except Exception: |
| 171 | traceback.print_exc(file=sys.stderr) |
| 172 | print('Error while reloading selenoid configuration.') |
| 173 | sys.exit(1) |
| 174 | return reload_successful |
| 175 | |
| 176 | |
| 177 | def edit_browsers_json(browser_name, browser_version): |
no outgoing calls
no test coverage detected