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

This commit is contained in:
Andrey Smirnov committed 2014-07-07 23:29:21 +04:00
1 parent de1fa85127
commit d3707b4cfe
2 files changed
+11

No files matched your search

@@ -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