summaryrefslogtreecommitdiff
path: root/tests.branching/ambiguous-refs.script
Commit message (Collapse)AuthorAgeFilesLines
* Fix test suite to patch YAML instead of JSONLars Wirzenius2013-08-141-1/+1
| | | | | | | | | | | | | I shouldn't be doing this in the middle of refactoring, but trying to get the new code to emit exactly the right kind of JSON is too much pain, and these tests need to be rewritten to use YAML in the near future anyway (we'll drop JSON support eventually), so I don't want to spend more time on this than necessary. The changes in this commit convert morphologies in JSON to YAML, and fix test code that modifies the morphologies to work with the YAML. There is probably more JSON lurking about.
* Merge branch 'jjardon/python_compatibility_fixes' of ↵Richard Maw2013-01-211-4/+1
|\ | | | | | | | | | | | | | | | | | | ssh://git.baserock.org/baserock/baserock/morph This includes the following fixups: - altering the bootstrap script to install ordereddict and simplejson. - Adding a comment to clarify that it is intentional to use simplejson if collections does not have OrderedDict - Amending the copyright years to include 2013
| * tests.branching/*: Remove check to run only the teset with Python 2.7Javier Jardón2013-01-181-3/+0
|/ | | | | As we use ordererdict for python < 2.7 as well See 37f8d84d7ab356169bf7c04bdecb39a61b85c88d
* Always use `git rev-parse --verify` to resolve refsSam Thursfield2012-12-131-2/+4
| | | | | | | | | | | | | Previously some code used `git show-ref`, which is wrong -- given two refs named 'alpha/master' and 'master', `git show-ref master` will return both, sorted alphabetically. This can lead to build failures, etc. due to refs resolving to the wrong SHAs. We should also use `git rev-parse --verify` to verify SHA1s, which we previously did with `git rev-list`. Finally, `git rev-parse --verify` is more than twice as fast as `git show-ref`.
* Tidy up command testsSam Thursfield2012-11-141-2/+3
| | | | Be consistent about placement of test description, blank lines, etc.
* Consolidate checks for python versionRichard Maw2012-11-131-6/+3
| | | | | | | | Most of the bespoke logic for the version check is unnecessary, since the output to display can be easily inferred from the filename. This fixes some test failures where the version check would cat a file to fake the output, but fail because the file was removed.
* Merge branch 'samthursfield/test-tidying' of ↵Richard Maw2012-11-121-3/+3
|\ | | | | | | git://git.baserock.org/baserock/morph
| * tests: Use test: URL prefix instead of baserock: throughoutSam Thursfield2012-11-071-3/+3
| | | | | | | | | | | | | | | | | | | | Some tests already used test: and in order to be able to share the scripts/setup-3rd-party-strata script they need to all use the same prefix. Using baserock: implies that we are using real code from Baserock, so I picked test: because the tests only ever use mock morphologies and no real code.
* | Fix spelling mistakesSam Thursfield2012-11-121-1/+1
|/
* Use origin/ref for all refs other than the system branch ref itselfSam Thursfield2012-10-031-0/+49
The rationale here is that inside a checkout of a system branch, the user should only be committing to the refs for that system branch, because those are the only ones that 'morph merge' will look at. This removes a problem where we could be confused by a ref with a name that would be sorted before 'master' in the result of 'git show-ref'.