File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
eval_protocol/cli_commands Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -513,15 +513,15 @@ def create_rft_command(args) -> int:
513513 rel = abs_path
514514 selected_entry = f"{ rel } ::{ func_name } "
515515 break
516- # If still unresolved and multiple tests exist, fail fast to avoid uploading unintended evaluators
517- if selected_entry is None :
518- print (
519- f"Error: Multiple evaluation tests found, and the selected evaluator_id { evaluator_id } does not match any discovered test.\n "
520- " Please re-run specifying the evaluator id.\n "
521- " Hints:\n "
522- " - eval-protocol create rft --evaluator-id <existing-evaluator-id>\n "
523- )
524- return 1
516+ # If still unresolved and multiple tests exist, fail fast to avoid uploading unintended evaluators
517+ if selected_entry is None and len ( tests ) > 1 :
518+ print (
519+ f"Error: Multiple evaluation tests found, and the selected evaluator_id { evaluator_id } does not match any discovered test.\n "
520+ " Please re-run specifying the evaluator id.\n "
521+ " Hints:\n "
522+ " - eval-protocol create rft --evaluator-id <existing-evaluator-id>\n "
523+ )
524+ return 1
525525
526526 upload_args = argparse .Namespace (
527527 path = project_root ,
You can’t perform that action at this time.
0 commit comments