summaryrefslogtreecommitdiff
path: root/tests.branching/edit-checkouts-existing-chunk.stdout
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-09-16 14:52:01 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-09-16 14:52:01 +0000
commitdea5d6f8cbd86916ec5373fb704c67e1a33e29a8 (patch)
treeb90b1e505075d21ce30ce2be2c96cdf937cd7aba /tests.branching/edit-checkouts-existing-chunk.stdout
parent0d2f30e6ea01778a8c37b305e42949e57d116ef5 (diff)
downloadmorph-dea5d6f8cbd86916ec5373fb704c67e1a33e29a8.tar.gz
foreach: sort repositories asciibetically
The test suite checks the output of the foreach command, this requires repositories to be returned in a stable order. The order returned from os.listdir differs by the filesystem used. btrfs returns roughly in insertion order, tmpfs alphabetically. This allowed the failure to sort pass through unchecked, since I was testing on btrfs, but people discovered issues when using /tmp, which is a tmpfs. To fix this, foreach sorts the result of list_git_directories() by directory name. The previous code would always return the root repository first, this was a unnecessary complication, so now everything is returned asciibetically and the tests amended to reflect this.
Diffstat (limited to 'tests.branching/edit-checkouts-existing-chunk.stdout')
-rw-r--r--tests.branching/edit-checkouts-existing-chunk.stdout6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests.branching/edit-checkouts-existing-chunk.stdout b/tests.branching/edit-checkouts-existing-chunk.stdout
index 5fbea686..f6ac79c2 100644
--- a/tests.branching/edit-checkouts-existing-chunk.stdout
+++ b/tests.branching/edit-checkouts-existing-chunk.stdout
@@ -1,11 +1,11 @@
Current branches:
-test:morphs
-* alfred
-
test:hello
* alfred
master
+test:morphs
+* alfred
+
Files in hello:
hello.morph