diff --git a/src/coreclr/scripts/fuzzlyn_run.py b/src/coreclr/scripts/fuzzlyn_run.py index 002d3548583f8..686abe65f10e9 100644 --- a/src/coreclr/scripts/fuzzlyn_run.py +++ b/src/coreclr/scripts/fuzzlyn_run.py @@ -134,8 +134,12 @@ def run(self): if reduce_this: print("Reducing {}".format(ex['Seed'])) - output_path = path.join(self.examples_dir, str(ex["Seed"]) + ".cs") - spmi_collections_path = path.join(self.examples_dir, str(ex["Seed"]) + "_spmi") + file_name = str(ex["Seed"]) + dash_index = file_name.find('-') + if dash_index != -1: + file_name = file_name[:dash_index] + output_path = path.join(self.examples_dir, file_name + ".cs") + spmi_collections_path = path.join(self.examples_dir, file_name + "_spmi") os.mkdir(spmi_collections_path) cmd = [self.fuzzlyn_path, "--host", self.host_path, diff --git a/src/coreclr/scripts/fuzzlyn_summarize.py b/src/coreclr/scripts/fuzzlyn_summarize.py index fed133c1340bb..baae8c828b026 100644 --- a/src/coreclr/scripts/fuzzlyn_summarize.py +++ b/src/coreclr/scripts/fuzzlyn_summarize.py @@ -216,8 +216,8 @@ def seed_from_internal_zip_path(path): f.write("\n\n") if len(remaining) > 0: - f.write("# {} uncategorized/unreduced examples remain\n".format(len(remaining))) - for ex in remaining: + f.write("# {} uncategorized/unreduced examples remain{}\n".format(len(remaining), " (10 shown)" if len(remaining) > 10 else "")) + for ex in remaining[:10]: f.write("* `{}`: {}\n".format(ex['Seed'], ex['Kind'])) if ex['Message'] and len(ex['Message'].strip()) > 0: f.write("```scala\n")