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:
-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)
-cpuprofile="": write cpu profile to file
-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-source=false: when processing dependencies, follow from binary to Source packages
-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 re
import inspect
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"), )]
prepare = BaseTest.prepare_remove_all
outputMatchPrepare = lambda _, s: re.sub(r' -(cpuprofile|memprofile|memstats|meminterval)=.*\n', '', s, flags=re.MULTILINE)
class ConfigInMissingFileTest(BaseTest):
"""