# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1533114064 -7200 # Wed Aug 01 11:01:04 2018 +0200 # Node ID 426cf7bf08ed74598c7c165096a70a52ff98b633 # Parent 25b932ea2ac281cee8847e2296fd525c15d69f61 make-reference: use a unique extension for the config file This make is easier to distinct from other config file. diff --git a/repo-scripts/make-reference b/repo-scripts/make-reference --- a/repo-scripts/make-reference +++ b/repo-scripts/make-reference @@ -17,7 +17,7 @@ repo_id="$2" repo_main="${repo_id}"-reference -repo_details="${repo_id}".yaml +repo_details="${repo_id}".benchrepo repo_tarball="${repo_id}"-reference.tar ### initial clone diff --git a/tests/test-make-partials.t b/tests/test-make-partials.t --- a/tests/test-make-partials.t +++ b/tests/test-make-partials.t @@ -50,7 +50,7 @@ $ mkdir partials-one $ cd partials-one - $ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.yaml + $ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.benchrepo Cloning repo4test_A (../local-references/repo4test_A-reference stripped of last(all(), 10)) into ./repo4test_A-partial-missing-last-10 (for exchange benchmarks) Cloning repo4test_A (../local-references/repo4test_A-reference stripped of None) into ./repo4test_A-partial-same (for exchange benchmarks) $ ls -1 @@ -73,7 +73,7 @@ $ mkdir partials-multiple $ cd partials-multiple - $ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.yaml ../local-references/repo4test_B.yaml + $ make-partial-repos ../p-config.yaml ../local-references/*.benchrepo Cloning repo4test_A (../local-references/repo4test_A-reference stripped of last(all(), 10)) into ./repo4test_A-partial-missing-last-10 (for exchange benchmarks) Cloning repo4test_A (../local-references/repo4test_A-reference stripped of None) into ./repo4test_A-partial-same (for exchange benchmarks) Cloning repo4test_B (../local-references/repo4test_B-reference stripped of last(all(), 10)) into ./repo4test_B-partial-missing-last-10 (for exchange benchmarks) @@ -93,20 +93,20 @@ $ mkdir partials-disabled $ cd partials-disabled - $ grep enabled ../local-references/repo4test_A.yaml + $ grep enabled ../local-references/repo4test_A.benchrepo enabled: Yes - $ sed -i 's/enabled: Yes/enabled: No/' ../local-references/repo4test_A.yaml - $ grep enabled ../local-references/repo4test_A.yaml + $ sed -i 's/enabled: Yes/enabled: No/' ../local-references/repo4test_A.benchrepo + $ grep enabled ../local-references/repo4test_A.benchrepo enabled: No - $ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.yaml ../local-references/repo4test_B.yaml + $ make-partial-repos ../p-config.yaml ../local-references/*.benchrepo skipping disabled reference repository: repo4test_A Cloning repo4test_B (../local-references/repo4test_B-reference stripped of last(all(), 10)) into ./repo4test_B-partial-missing-last-10 (for exchange benchmarks) Cloning repo4test_B (../local-references/repo4test_B-reference stripped of None) into ./repo4test_B-partial-same (for exchange benchmarks) $ ls -1 repo4test_B-partial-missing-last-10 repo4test_B-partial-same - $ sed -i 's/enabled: Non/enabled: Yes/' ../local-references/repo4test_A.yaml - $ grep enabled ../local-references/repo4test_A.yaml + $ sed -i 's/enabled: Non/enabled: Yes/' ../local-references/repo4test_A.benchrepo + $ grep enabled ../local-references/repo4test_A.benchrepo enabled: No $ cd .. diff --git a/tests/test-make-reference.t b/tests/test-make-reference.t --- a/tests/test-make-reference.t +++ b/tests/test-make-reference.t @@ -33,9 +33,9 @@ $ ls -1 my-reference-reference my-reference-reference.tar - my-reference.yaml + my-reference.benchrepo some-dir - $ cat my-reference.yaml + $ cat my-reference.benchrepo reference-repo: id: my-reference enabled: Yes @@ -54,7 +54,7 @@ Call with existing data ----------------- - $ rm -rf my-reference.yaml my-reference.tar + $ rm -rf my-reference.benchrepo my-reference.tar $ make-reference some-dir/my-source-repo my-reference target repo already exists, skipping clone (make sure this was clone with the right version) @@ -63,9 +63,9 @@ $ ls -1 my-reference-reference my-reference-reference.tar - my-reference.yaml + my-reference.benchrepo some-dir - $ cat my-reference.yaml + $ cat my-reference.benchrepo reference-repo: id: my-reference enabled: Yes @@ -81,7 +81,7 @@ visible: 1 all: 1 $ tar tf my-reference-reference.tar - my-reference.yaml + my-reference.benchrepo my-reference-reference/ my-reference-reference/.hg/ my-reference-reference/.hg/requires