2 import os, subprocess, sys
3 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
10 def get_script_path(dirname):
11 filenames = os.listdir(dirname)
12 for filename in filenames:
13 full_filename = os.path.join(dirname, filename)
14 if os.path.isdir(full_filename):
15 get_script_path(full_filename)
17 ext = os.path.splitext(full_filename)[-1]
19 "BuildTPK" not in full_filename and \
20 "Utils" not in full_filename and \
21 "ALL" not in full_filename:
22 script_lists.append(full_filename)
27 device = get_device_type()
28 print(f"=== Dotnet-Launcher [{device}] Test Case ===")
30 for tc in sorted(script_lists):
31 subprocess.run((f"{tc} {serial}").split())
36 serial = read_serial(None)
38 print("No connected device(s).")
45 if __name__ == "__main__":
48 except KeyboardInterrupt: