mirror of
https://github.com/nasa/trick.git
synced 2025-01-18 18:56:31 +00:00
Printing directories
This commit is contained in:
parent
676c0fe3a0
commit
eb97917e10
@ -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():
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user