#!/usr/bin/python3 # # test-python3.7.py quality assurance test script # script wrapper for usage under Checkbox # Copyright (C) 2011 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 python3.7 ''' # QRT-Depends: test-python.py # QRT-Packages: python3.7 netcat-openbsd w3m from __future__ import print_function import subprocess import sys PYTHON='python3.7' if __name__ == '__main__': print('%s regression tests' % (PYTHON)) prc = subprocess.Popen([ 'python3', 'test-python.py', PYTHON], stdout=sys.stdout, stderr=subprocess.STDOUT) prc.wait() sys.exit(prc.returncode)