1. Yit Phang Khoo
  2. Adapton.ocaml

Commits

Yit Phang Khoo  committed 3de63dc

Resolve "latest" symlink to use as label for benchmark summary.

  • Participants
  • Parent commits 7b804db
  • Branches default

Comments (0)

Files changed (1)

File Test/runbenchmarksalist.py

View file
  • Ignore whitespace
                 if args.label:
                     output += " " + args.label.strip()
                     os.makedirs(output)
-                output_label = os.path.basename(output)
+                if inputs[0] == os.path.join(config["output"], "latest") and os.path.islink(inputs[0]):
+                    output_label = os.path.basename(os.readlink(inputs[0]))
+                else:
+                    output_label = os.path.basename(output)
             else:
                 output_label = time.strftime("%Y-%m-%d-%H-%M-%S summary")
                 if args.label: