Skip to content
Snippets Groups Projects
Commit f1196743 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

scripts: rename update-benchrepo to upgrade-reference

Having both `update-reference-config` and `update-benchrepo` is confusing. So we
rename `update-benchrepo`. `update` is changed to `upgrade` to clarify that this
is meant to move from an older version to a newer one. And `benchrepo` is
changed to `reference`, the fact it touches `benchrepo` is mostly an
implementation details, the main argument is a `*-reference.tar` file.
parent 0d0c57f9
No related branches found
No related tags found
No related merge requests found
======================================
Test for the `update benchrepo` script
======================================
=======================================
Test for the `upgrade-reference` script
=======================================
Setup
......@@ -42,8 +42,8 @@
Wrong call
----------
$ update-benchrepo --help
usage: update-benchrepo [-h] reference_archive.tar partial-sets.yaml
$ upgrade-reference --help
usage: upgrade-reference [-h] reference_archive.tar partial-sets.yaml
Update a benchrepo reference tar with the repo format data
......@@ -54,11 +54,11 @@
optional arguments:
-h, --help show this help message and exit
$ update-benchrepo
usage: update-benchrepo [-h] reference_archive.tar partial-sets.yaml
update-benchrepo: error: too few arguments
$ upgrade-reference
usage: upgrade-reference [-h] reference_archive.tar partial-sets.yaml
upgrade-reference: error: too few arguments
[2]
Actual call
-----------
......@@ -60,9 +60,9 @@
[2]
Actual call
-----------
$ update-benchrepo my-source-repo.tar ../p-config.yaml
$ upgrade-reference my-source-repo.tar ../p-config.yaml
Extracting the tar.
Reading the original benchrepo file.
Gathering the new benchrepo data.
......@@ -119,7 +119,7 @@
$ cd some-dir/
$ update-benchrepo my-source-repo-*-reference.tar ../p-config.yaml
$ upgrade-reference my-source-repo-*-reference.tar ../p-config.yaml
Extracting the tar.
Reading the original benchrepo file.
Gathering the new benchrepo data.
......@@ -142,7 +142,7 @@
$ tar tf my-source-repo-*-partial-same.tar --wildcards '*/.hg/requires'
my-source-repo/.hg/requires
$ update-benchrepo my-source-repo-*-reference.tar ../p-config.yaml
$ upgrade-reference my-source-repo-*-reference.tar ../p-config.yaml
Extracting the tar.
Reading the original benchrepo file.
Gathering the new benchrepo data.
......
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