Skip to content
Snippets Groups Projects
Commit 021dc2cdec6e authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

result-compare: add argument to chose the comparison key

parent 8665188fd939
No related branches found
No related tags found
No related merge requests found
......@@ -107,8 +107,14 @@
@click.command()
@click.argument("file", type=click.File(), default="-")
def result_compare(file):
@click.option(
"-d",
"--dimension",
default="bin-env-vars.hg.changeset.node",
help="The path to the dimension along which to compare (e.g. the nodeid)",
)
def result_compare(file, dimension):
"""Compare results together.
`poulpe result-search --content-as-json | poulpe result-compare`"""
all_results = json.load(file)
......@@ -111,8 +117,8 @@
"""Compare results together.
`poulpe result-search --content-as-json | poulpe result-compare`"""
all_results = json.load(file)
compare_key = ('bin-env-vars', 'hg', 'changeset', 'node')
compare_key = tuple(dimension.split("."))
results = dispatch_results(all_results, compare_key)
display_results(results, compare_key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment