Make system test ignore debugging features being on/off.

This commit is contained in:
Andrey Smirnov
2014-03-05 16:00:00 +04:00
parent 410caa6141
commit 9f1f5aa92f
5 changed files with 8 additions and 12 deletions
-4
View File
@@ -17,11 +17,7 @@ Use "aptly help <command>" for more information about a command.
Options: Options:
-architectures="": list of architectures to consider during (comma-separated), default to all available -architectures="": list of architectures to consider during (comma-separated), default to all available
-config="": location of configuration file (default locations are /etc/aptly.conf, ~/.aptly.conf) -config="": location of configuration file (default locations are /etc/aptly.conf, ~/.aptly.conf)
-cpuprofile="": write cpu profile to file
-dep-follow-all-variants=false: when processing dependencies, follow a & b if depdency is 'a|b' -dep-follow-all-variants=false: when processing dependencies, follow a & b if depdency is 'a|b'
-dep-follow-recommends=false: when processing dependencies, follow Recommends -dep-follow-recommends=false: when processing dependencies, follow Recommends
-dep-follow-source=false: when processing dependencies, follow from binary to Source packages -dep-follow-source=false: when processing dependencies, follow from binary to Source packages
-dep-follow-suggests=false: when processing dependencies, follow Suggests -dep-follow-suggests=false: when processing dependencies, follow Suggests
-meminterval=100ms: memory stats dump interval
-memprofile="": write memory profile to this file
-memstats="": write memory stats periodically to this file
+3
View File
@@ -3,6 +3,7 @@ Test config file
""" """
import os import os
import re
import inspect import inspect
from lib import BaseTest from lib import BaseTest
@@ -43,6 +44,8 @@ class ConfigInFileTest(BaseTest):
runCmd = ["aptly", "-config=%s" % (os.path.join(os.path.dirname(inspect.getsourcefile(BadConfigTest)), "aptly.conf"), )] runCmd = ["aptly", "-config=%s" % (os.path.join(os.path.dirname(inspect.getsourcefile(BadConfigTest)), "aptly.conf"), )]
prepare = BaseTest.prepare_remove_all prepare = BaseTest.prepare_remove_all
outputMatchPrepare = lambda _, s: re.sub(r' -(cpuprofile|memprofile|memstats|meminterval)=.*\n', '', s, flags=re.MULTILINE)
class ConfigInMissingFileTest(BaseTest): class ConfigInMissingFileTest(BaseTest):
""" """
-4
View File
@@ -6,12 +6,8 @@ back as Debian repositories.
Options: Options:
-architectures="": list of architectures to consider during (comma-separated), default to all available -architectures="": list of architectures to consider during (comma-separated), default to all available
-config="": location of configuration file (default locations are /etc/aptly.conf, ~/.aptly.conf) -config="": location of configuration file (default locations are /etc/aptly.conf, ~/.aptly.conf)
-cpuprofile="": write cpu profile to file
-dep-follow-all-variants=false: when processing dependencies, follow a & b if depdency is 'a|b' -dep-follow-all-variants=false: when processing dependencies, follow a & b if depdency is 'a|b'
-dep-follow-recommends=false: when processing dependencies, follow Recommends -dep-follow-recommends=false: when processing dependencies, follow Recommends
-dep-follow-source=false: when processing dependencies, follow from binary to Source packages -dep-follow-source=false: when processing dependencies, follow from binary to Source packages
-dep-follow-suggests=false: when processing dependencies, follow Suggests -dep-follow-suggests=false: when processing dependencies, follow Suggests
-meminterval=100ms: memory stats dump interval
-memprofile="": write memory profile to this file
-memstats="": write memory stats periodically to this file
-4
View File
@@ -17,11 +17,7 @@ Use "aptly help <command>" for more information about a command.
Options: Options:
-architectures="": list of architectures to consider during (comma-separated), default to all available -architectures="": list of architectures to consider during (comma-separated), default to all available
-config="": location of configuration file (default locations are /etc/aptly.conf, ~/.aptly.conf) -config="": location of configuration file (default locations are /etc/aptly.conf, ~/.aptly.conf)
-cpuprofile="": write cpu profile to file
-dep-follow-all-variants=false: when processing dependencies, follow a & b if depdency is 'a|b' -dep-follow-all-variants=false: when processing dependencies, follow a & b if depdency is 'a|b'
-dep-follow-recommends=false: when processing dependencies, follow Recommends -dep-follow-recommends=false: when processing dependencies, follow Recommends
-dep-follow-source=false: when processing dependencies, follow from binary to Source packages -dep-follow-source=false: when processing dependencies, follow from binary to Source packages
-dep-follow-suggests=false: when processing dependencies, follow Suggests -dep-follow-suggests=false: when processing dependencies, follow Suggests
-meminterval=100ms: memory stats dump interval
-memprofile="": write memory profile to this file
-memstats="": write memory stats periodically to this file
+5
View File
@@ -2,6 +2,7 @@
Test help screens Test help screens
""" """
import re
from lib import BaseTest from lib import BaseTest
@@ -11,6 +12,8 @@ class MainTest(BaseTest):
""" """
runCmd = "aptly" runCmd = "aptly"
outputMatchPrepare = lambda _, s: re.sub(r' -(cpuprofile|memprofile|memstats|meminterval)=.*\n', '', s, flags=re.MULTILINE)
class MirrorTest(BaseTest): class MirrorTest(BaseTest):
""" """
@@ -32,6 +35,8 @@ class MainHelpTest(BaseTest):
""" """
runCmd = "aptly help" runCmd = "aptly help"
outputMatchPrepare = lambda _, s: re.sub(r' -(cpuprofile|memprofile|memstats|meminterval)=.*\n', '', s, flags=re.MULTILINE)
class MirrorHelpTest(BaseTest): class MirrorHelpTest(BaseTest):
""" """