~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/doc/archive-override-check.txt

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-26 06:30:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14049.
  • Revision ID: jeroen.vermeulen@canonical.com-20110926063007-1fb5eelnidpnra9a
Fix lots of lint in recently-changed files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
= Check for discrepancies in overrides between architectures =
 
1
Check for discrepancies in overrides between architectures
 
2
==========================================================
2
3
 
3
4
This script looks for out-of-sync overrides, checking for
4
5
discrepancies in overrides between architectures.
14
15
XXX cprov 20060714: we need better populate archive/"publishing
15
16
history" in the sampledata to test those tools properly.
16
17
 
17
 
  >>> import os
18
 
  >>> import subprocess
19
 
  >>> import sys
20
 
  >>> from canonical.config import config
21
 
 
22
 
  >>> script = os.path.join(config.root, "scripts", "ftpmaster-tools",
23
 
  ...                       "archive-override-check.py")
24
 
 
25
 
  >>> process = subprocess.Popen([sys.executable, script, "-v",
26
 
  ...                             "-d", "ubuntu",
27
 
  ...                             "-s", "warty"],
28
 
  ...                            stdout=subprocess.PIPE,
29
 
  ...                            stderr=subprocess.PIPE,)
30
 
  >>> stdout, stderr = process.communicate()
31
 
  >>> process.returncode
32
 
  0
33
 
  >>> print stderr
34
 
  INFO    Creating lockfile: ...
35
 
  DEBUG   Considering: ubuntu/warty/RELEASE/CURRENT.
36
 
  DEBUG   ... published sources
37
 
  DEBUG   Rolling back any remaining transactions.
38
 
  DEBUG   Removing lock file: ...
39
 
  <BLANKLINE>
 
18
    >>> import os
 
19
    >>> import subprocess
 
20
    >>> import sys
 
21
    >>> from canonical.config import config
 
22
 
 
23
    >>> script = os.path.join(
 
24
    ...     config.root, "scripts", "ftpmaster-tools",
 
25
    ...     "archive-override-check.py")
 
26
 
 
27
    >>> process = subprocess.Popen(
 
28
    ...     [sys.executable, script, "-v", "-d", "ubuntu", "-s", "warty"],
 
29
    ...     stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 
30
    >>> stdout, stderr = process.communicate()
 
31
    >>> process.returncode
 
32
    0
 
33
    >>> print stderr
 
34
    INFO    Creating lockfile: ...
 
35
    DEBUG   Considering: ubuntu/warty/RELEASE/CURRENT.
 
36
    DEBUG   ... published sources
 
37
    DEBUG   Rolling back any remaining transactions.
 
38
    DEBUG   Removing lock file: ...
 
39
    <BLANKLINE>
40
40
 
41
41
 
42
42
Since its data is sane, empty STDOUT is okay.
43
43
 
44
 
  >>> print stdout
 
44
    >>> print stdout