examples = runner/onepackage-config \
runner/ubuntu-config
-pythonfiles = virt-subproc/VirtSubproc.py
+pythonfiles = lib/Autopkgtest.py \
+ lib/VirtSubproc.py
all:
cd xen && $(MAKE)
--- /dev/null
+# Autopkgtest is part of autopkgtest
+# autopkgtest is a tool for testing Debian binary packages
+#
+# autopkgtest is Copyright (C) 2006-2007 Canonical Ltd.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file CREDITS for a full list of credits information (often
+# installed as /usr/share/doc/autopkgtest/CREDITS).
+
+import re as regexp
+
+_shellquote_re = regexp.compile("'")
+def shellquote_arg(s): return "'" + _shellquote_re.sub(r"'\''", s) + "'"
+def shellquote_cmdl(l): return ' '.join(map(shellquote_arg,l))
+
import errno
import re as regexp
+from Autopkgtest import *
+
debuglevel = None
progname = "<VirtSubproc>"
devnull_read = file('/dev/null','r')
from optparse import OptionParser
signal.signal(signal.SIGINT, signal.SIG_DFL) # undo stupid Python SIGINT thing
+try: our_base = os.environ['AUTOPKGTEST_BASE']+'/lib'
+except KeyError: our_base = '/usr/share/autopkgtest/python';
+sys.path.insert(1, our_base)
+
+from Autopkgtest import *
+
#---------- global variables
tmpdir = None # pathstring on host
if len(pec) < 1: tb.bomb('too few results from print-execute-command')
cmdl = map(urllib.unquote, pec[0].split(','))
- shellquote_re = regexp.compile('"')
- def shellquote_arg(s): return "'" + shellquote_re.sub(r"'\''", s) + "'"
- def shellquote_cmdl(l): return ' '.join(map(shellquote_arg,l))
-
tb._debug('cmdl = %s' % (`cmdl`))
tb.ec_auxverbscript = TemporaryFile('satdep-auxverb')
import string
from optparse import OptionParser
-try: our_base = os.environ['AUTOPKGTEST_BASE']
-except KeyError: our_base = '/usr/share/autopkgtest';
-sys.path.insert(1, our_base+'/python')
+try: our_base = os.environ['AUTOPKGTEST_BASE']+'/lib'
+except KeyError: our_base = '/usr/share/autopkgtest/python';
+sys.path.insert(1, our_base)
import VirtSubproc as vsp
capabilities = []
import string
from optparse import OptionParser
-try: our_base = os.environ['AUTOPKGTEST_BASE']
-except KeyError: our_base = '/usr/share/autopkgtest';
-sys.path.insert(1, our_base+'/python')
+try: our_base = os.environ['AUTOPKGTEST_BASE']+'/lib'
+except KeyError: our_base = '/usr/share/autopkgtest/python';
+sys.path.insert(1, our_base)
import VirtSubproc as vsp
capabilities = []
import pwd
from optparse import OptionParser
-try: our_base = os.environ['AUTOPKGTEST_BASE']
-except KeyError: our_base = '/usr/share/autopkgtest';
-sys.path.insert(1, our_base+'/python')
+try: our_base = os.environ['AUTOPKGTEST_BASE']+'/lib'
+except KeyError: our_base = '/usr/share/autopkgtest/python';
+sys.path.insert(1, our_base)
import VirtSubproc as vsp
capabilities = []
import signal
from optparse import OptionParser
-try: our_base = os.environ['AUTOPKGTEST_BASE']
-except KeyError: our_base = '/usr/share/autopkgtest';
-sys.path.insert(1, our_base+'/python')
+try: our_base = os.environ['AUTOPKGTEST_BASE']+'/lib'
+except KeyError: our_base = '/usr/share/autopkgtest/python';
+sys.path.insert(1, our_base)
import VirtSubproc as vsp