Printing directories

This commit is contained in:
Caleb Herpin 2021-07-28 11:34:09 -05:00
parent 676c0fe3a0
commit eb97917e10
2 changed files with 9 additions and 7 deletions

View File

@ -64,16 +64,18 @@ trick.exec_set_freeze_command(True)""")
# print("....................Running:", build_cmd)
# subprocess.run(clean_cmd, shell=True)
print("Directory listing:")
os.listdir(".")
cmd = f"ls -latrhF `find {params.get_trick_home()}/trick_sims`"
print("....................Running:", cmd)
pause("Before find")
subprocess.run(cmd, shell=True)
pause("After find")
if not os.path.exists(os.path.join(pathToSim, "S_main_Linux_9.3_x86_64.exe")):
build_cmd = f"echo \"cd {pathToSim} && {params.get_trick_home()}/bin/trick-CP\" | /bin/bash"
print("....................Running:", build_cmd)
subprocess.run(build_cmd, shell=True)
print("Directory listing:")
os.listdir(".")
cmd = "echo \"ls -latrhF `find /__w/trick/trick/trick_sims`\" | /bin/bash"
print("....................Running:", cmd)
subprocess.run(cmd, shell=True)
# pause("After build before start")
if params.get_start_sim():

View File

@ -4,7 +4,7 @@ import os
def pause(my_str = "no message."):
print("Type exit to continue:" + my_str)
os.system("/bin/bash")
# os.system("/bin/bash")
# input()
#This file contains variables for the civet_server tests