Add system test on wrong --sort parameter. #73

This commit is contained in:
Andrey Smirnov
2014-07-07 23:29:21 +04:00
parent de1fa85127
commit d3707b4cfe
2 changed files with 11 additions and 0 deletions
@@ -0,0 +1 @@
ERROR: sorting method "planet" unknown
+10
View File
@@ -65,6 +65,7 @@ class ListSnapshot5Test(BaseTest):
]
runCmd = "aptly -raw -sort=time snapshot list"
class ListSnapshot6Test(BaseTest):
"""
list snapshots: regular list sorted by time
@@ -80,3 +81,12 @@ class ListSnapshot6Test(BaseTest):
"aptly snapshot create snap5 from repo local-repo",
]
runCmd = "aptly -sort=time snapshot list"
class ListSnapshot7Test(BaseTest):
"""
list snapshots: wrong parameter sort
"""
runCmd = "aptly -sort=planet snapshot list"
expectedCode = 1