1
# UpgradeTestBackendSimulate.py
6
from __future__ import absolute_import, print_function
10
from .UpgradeTestBackend import UpgradeTestBackend
12
class UpgradeTestBackendSimulate(UpgradeTestBackend):
14
def __init__(self, profiledir, resultdir=""):
15
tmpdir = tempfile.mkdtemp()
16
super(UpgradeTestBackendSimulate, self).__init__(profiledir, resultdir=tmpdir)
18
def installPackages(self, pkgs):
19
print("simulate installing packages: %s" % ",".join(pkgs))
22
" bootstaps a pristine install"
23
print("simulate running bootstrap")
27
" upgrade a given install "
28
print("simulate running upgrade")
32
" test if the upgrade was successful "
33
print("running post upgrade test")