#!/usr/bin/python3 # # test-python2.6.py quality assurance test script # script wrapper for usage under Checkbox # Copyright (C) 2010 Canonical Ltd. # Author: C de-Avillez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2, # as published by the Free Software Foundation. # # 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, see . # ''' *** IMPORTANT *** DO NOT RUN ON A PRODUCTION SERVER. *** IMPORTANT *** How to run: $ sudo apt-get install python2.6 ''' # QRT-Depends: test-python.py # QRT-Packages: python2.6 w3m netcat-openbsd from __future__ import print_function import subprocess import sys if __name__ == '__main__': print('python2.6 regression tests') prc = subprocess.Popen([ 'python3', 'test-python.py', 'python2.6'], stdout=sys.stdout, stderr=subprocess.STDOUT) prc.wait() sys.exit(prc.returncode)