########################################################################### # # Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file config.py # # @author (last) Joseph Varghese # @date (last) 17-Jan-2022 # ############################################################################ def aha_setup(): test.startSection("AHA SETUP") cleanup() # cleanup before setup test.log("Launching a new instance of PARSIM/AHA/PATSIM") try: os.chdir(f"{config.COMMON_PATH}") res = os.system("./maintenance_script.sh") squish.snooze(5) if (res != 0) and (res != 256): raise Exception("Wrong path to the simulator executable was given. Script not executed") except Exception as msg: test.log(pyStr(msg)) test.log("Launched a new instance of PARSIM/AHA/PATSIM") startApplication(config.RainierMonitorApplication, "Rainier Monitor") test.endSection()