Check validity of workload name at profile stage #58
Signed-off-by: colramos425 <colramos@amd.com>
This commit is contained in:
@@ -334,6 +334,10 @@ def omniperf_profile(args, VER):
|
|||||||
parse.print_help(sys.stderr)
|
parse.print_help(sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
#Verify valid name
|
||||||
|
if args.name.find(".") != -1 or args.name.find("-") != -1:
|
||||||
|
raise ValueError("'-' and '.' are not permited in workload name", args.name)
|
||||||
|
|
||||||
# Basic Info
|
# Basic Info
|
||||||
print(PROG, "ver: ", VER)
|
print(PROG, "ver: ", VER)
|
||||||
print("Path: ", args.path)
|
print("Path: ", args.path)
|
||||||
|
|||||||
Reference in New Issue
Block a user