/usr/lib/python3/dist-packages/AutoUpgradeTester/UpgradeTestBackendSimulate.py is in auto-upgrade-tester 1:0.166.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | # UpgradeTestBackendSimulate.py
#
# test backend
#
from __future__ import absolute_import, print_function
import tempfile
from AutoUpgradeTester.UpgradeTestBackend import UpgradeTestBackend
class UpgradeTestBackendSimulate(UpgradeTestBackend):
def __init__(self, profiledir, resultdir=""):
tmpdir = tempfile.mkdtemp()
super(UpgradeTestBackendSimulate, self).__init__(profiledir, resultdir=tmpdir)
def installPackages(self, pkgs):
print("simulate installing packages: %s" % ",".join(pkgs))
def bootstrap(self):
" bootstaps a pristine install"
print("simulate running bootstrap")
return True
def upgrade(self):
" upgrade a given install "
print("simulate running upgrade")
return True
def test(self):
" test if the upgrade was successful "
print("running post upgrade test")
return True
|