您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
29 行
665 B
29 行
665 B
import sys
|
|
import argparse
|
|
|
|
from .yamato_utils import get_base_path, create_samples
|
|
|
|
|
|
def main(scenes):
|
|
base_path = get_base_path()
|
|
print(f"Running in base path {base_path}")
|
|
|
|
returncode = create_samples(
|
|
scenes,
|
|
base_path,
|
|
log_output_path=None, # Log to stdout so we get timestamps on the logs
|
|
)
|
|
|
|
if returncode == 0:
|
|
print("Test run SUCCEEDED!")
|
|
else:
|
|
print("Test run FAILED!")
|
|
|
|
sys.exit(returncode)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("--scene", nargs="+", default=None, required=True)
|
|
args = parser.parse_args()
|
|
main(args.scene)
|