Raw (machine-readable) format for aptly mirror/repo/snapshot list. #27

This commit is contained in:
Andrey Smirnov
2014-04-15 10:43:36 +04:00
parent ce615facf9
commit 90dd21b270
13 changed files with 167 additions and 43 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
List of mirrors:
List of local repos:
* [repo1] (packages: 0)
* [repo2]: Cool2 (packages: 0)
* [repo3]: Cool3 (packages: 0)
View File
+3
View File
@@ -0,0 +1,3 @@
repo1
repo2
repo3
+19
View File
@@ -18,3 +18,22 @@ class ListRepo2Test(BaseTest):
"aptly repo create repo1",
]
runCmd = "aptly repo list"
class ListRepo3Test(BaseTest):
"""
list local repos: raw no repos
"""
runCmd = "aptly -raw repo list"
class ListRepo4Test(BaseTest):
"""
list local repo: raw normal
"""
fixtureCmds = [
"aptly repo create -comment=Cool3 repo3",
"aptly repo create -comment=Cool2 repo2",
"aptly repo create repo1",
]
runCmd = "aptly repo list -raw"