mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-02 04:50:49 +00:00
+5
-15
@@ -5,6 +5,7 @@ class CopyRepo1Test(BaseTest):
|
||||
"""
|
||||
copy in local repo: simple copy
|
||||
"""
|
||||
sortOutput = True
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo1",
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo2",
|
||||
@@ -17,14 +18,12 @@ class CopyRepo1Test(BaseTest):
|
||||
self.check_cmd_output("aptly repo show -with-packages repo1", "repo1_show")
|
||||
self.check_cmd_output("aptly repo show -with-packages repo2", "repo2_show")
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
|
||||
class CopyRepo2Test(BaseTest):
|
||||
"""
|
||||
copy in local repo: simple copy w/deps
|
||||
"""
|
||||
sortOutput = True
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo1",
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo2",
|
||||
@@ -37,14 +36,12 @@ class CopyRepo2Test(BaseTest):
|
||||
self.check_cmd_output("aptly repo show -with-packages repo1", "repo1_show")
|
||||
self.check_cmd_output("aptly repo show -with-packages repo2", "repo2_show")
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
|
||||
class CopyRepo3Test(BaseTest):
|
||||
"""
|
||||
copy in local repo: simple copy w/deps but w/o archs
|
||||
"""
|
||||
sortOutput = True
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo1",
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo2",
|
||||
@@ -53,14 +50,12 @@ class CopyRepo3Test(BaseTest):
|
||||
runCmd = "aptly repo copy -with-deps repo1 repo2 'pyspi (>> 0.6.1-1.3)' libboost-program-options-dev_1.49.0.1_i386"
|
||||
expectedCode = 1
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
|
||||
class CopyRepo4Test(BaseTest):
|
||||
"""
|
||||
copy in local repo: dry run
|
||||
"""
|
||||
sortOutput = True
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo1",
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo2",
|
||||
@@ -73,14 +68,12 @@ class CopyRepo4Test(BaseTest):
|
||||
self.check_cmd_output("aptly repo show -with-packages repo1", "repo1_show")
|
||||
self.check_cmd_output("aptly repo show -with-packages repo2", "repo2_show")
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
|
||||
class CopyRepo5Test(BaseTest):
|
||||
"""
|
||||
copy in local repo: wrong dep
|
||||
"""
|
||||
sortOutput = True
|
||||
fixtureCmds = [
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo1",
|
||||
"aptly repo create -comment=Cool -distribution=squeeze repo2",
|
||||
@@ -89,9 +82,6 @@ class CopyRepo5Test(BaseTest):
|
||||
runCmd = "aptly repo copy repo1 repo2 'pyspi >> 0.6.1-1.3)'"
|
||||
expectedCode = 1
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
|
||||
class CopyRepo6Test(BaseTest):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user