Remove strace from buildinstall runroot
The package is not really needed. Relates: https://pagure.io/pungi/issue/799 Signed-off-by: Ondrej Nosek <onosek@redhat.com>
This commit is contained in:
parent
ba3adf9bc4
commit
59c162d46f
@ -55,7 +55,7 @@ packages above as they are used by calling an executable. ::
|
|||||||
$ for pkg in _deltarpm krbV _selinux deltarpm sqlitecachec _sqlitecache; do ln -vs "$(deactivate && python -c 'import os, '$pkg'; print '$pkg'.__file__')" "$(virtualenvwrapper_get_site_packages_dir)"; done
|
$ for pkg in _deltarpm krbV _selinux deltarpm sqlitecachec _sqlitecache; do ln -vs "$(deactivate && python -c 'import os, '$pkg'; print '$pkg'.__file__')" "$(virtualenvwrapper_get_site_packages_dir)"; done
|
||||||
$ pip install -U pip
|
$ pip install -U pip
|
||||||
$ PYCURL_SSL_LIBRARY=nss pip install pycurl --no-binary :all:
|
$ PYCURL_SSL_LIBRARY=nss pip install pycurl --no-binary :all:
|
||||||
$ pip install jsonschema kobo==0.60 lockfile lxml mock nose nose-cov productmd pyopenssl python-multilib requests setuptools sphinx
|
$ pip install jsonschema kobo==0.6.0 lockfile lxml mock nose nose-cov productmd pyopenssl python-multilib requests setuptools sphinx
|
||||||
|
|
||||||
Now you should be able to run all existing tests.
|
Now you should be able to run all existing tests.
|
||||||
|
|
||||||
|
@ -420,7 +420,7 @@ class BuildinstallThread(WorkerThread):
|
|||||||
task_id = None
|
task_id = None
|
||||||
if runroot:
|
if runroot:
|
||||||
# run in a koji build root
|
# run in a koji build root
|
||||||
packages = ["strace"]
|
packages = []
|
||||||
if buildinstall_method == "lorax":
|
if buildinstall_method == "lorax":
|
||||||
packages += ["lorax"]
|
packages += ["lorax"]
|
||||||
elif buildinstall_method == "buildinstall":
|
elif buildinstall_method == "buildinstall":
|
||||||
|
@ -344,7 +344,6 @@ class TestBuildinstallPhase(PungiTestCase):
|
|||||||
mock.call(compose, 'amd64', variant=compose.variants['Client'], disc_type='dvd'),
|
mock.call(compose, 'amd64', variant=compose.variants['Client'], disc_type='dvd'),
|
||||||
mock.call(compose, 'amd64', variant=compose.variants['Server'], disc_type='dvd')])
|
mock.call(compose, 'amd64', variant=compose.variants['Server'], disc_type='dvd')])
|
||||||
|
|
||||||
|
|
||||||
@mock.patch('pungi.phases.buildinstall.ThreadPool')
|
@mock.patch('pungi.phases.buildinstall.ThreadPool')
|
||||||
@mock.patch('pungi.phases.buildinstall.LoraxWrapper')
|
@mock.patch('pungi.phases.buildinstall.LoraxWrapper')
|
||||||
@mock.patch('pungi.phases.buildinstall.get_volid')
|
@mock.patch('pungi.phases.buildinstall.get_volid')
|
||||||
@ -627,7 +626,7 @@ class BuildinstallThreadTestCase(PungiTestCase):
|
|||||||
get_runroot_cmd.mock_calls,
|
get_runroot_cmd.mock_calls,
|
||||||
[mock.call('rrt', 'x86_64', self.cmd, channel=None,
|
[mock.call('rrt', 'x86_64', self.cmd, channel=None,
|
||||||
use_shell=True, task_id=True,
|
use_shell=True, task_id=True,
|
||||||
packages=['strace', 'lorax'], mounts=[self.topdir], weight=123)])
|
packages=['lorax'], mounts=[self.topdir], weight=123)])
|
||||||
self.assertItemsEqual(
|
self.assertItemsEqual(
|
||||||
run_runroot_cmd.mock_calls,
|
run_runroot_cmd.mock_calls,
|
||||||
[mock.call(get_runroot_cmd.return_value,
|
[mock.call(get_runroot_cmd.return_value,
|
||||||
@ -668,7 +667,7 @@ class BuildinstallThreadTestCase(PungiTestCase):
|
|||||||
get_runroot_cmd.mock_calls,
|
get_runroot_cmd.mock_calls,
|
||||||
[mock.call('rrt', 'x86_64', self.cmd, channel=None,
|
[mock.call('rrt', 'x86_64', self.cmd, channel=None,
|
||||||
use_shell=True, task_id=True,
|
use_shell=True, task_id=True,
|
||||||
packages=['strace', 'anaconda'], mounts=[self.topdir], weight=None)])
|
packages=['anaconda'], mounts=[self.topdir], weight=None)])
|
||||||
self.assertItemsEqual(
|
self.assertItemsEqual(
|
||||||
run_runroot_cmd.mock_calls,
|
run_runroot_cmd.mock_calls,
|
||||||
[mock.call(get_runroot_cmd.return_value,
|
[mock.call(get_runroot_cmd.return_value,
|
||||||
@ -811,7 +810,7 @@ class BuildinstallThreadTestCase(PungiTestCase):
|
|||||||
get_runroot_cmd.mock_calls,
|
get_runroot_cmd.mock_calls,
|
||||||
[mock.call('rrt', 'x86_64', self.cmd, channel=None,
|
[mock.call('rrt', 'x86_64', self.cmd, channel=None,
|
||||||
use_shell=True, task_id=True,
|
use_shell=True, task_id=True,
|
||||||
packages=['strace', 'lorax'], mounts=[self.topdir], weight=123)])
|
packages=['lorax'], mounts=[self.topdir], weight=123)])
|
||||||
self.assertItemsEqual(
|
self.assertItemsEqual(
|
||||||
run_runroot_cmd.mock_calls,
|
run_runroot_cmd.mock_calls,
|
||||||
[mock.call(get_runroot_cmd.return_value,
|
[mock.call(get_runroot_cmd.return_value,
|
||||||
@ -828,8 +827,7 @@ class BuildinstallThreadTestCase(PungiTestCase):
|
|||||||
[mock.call(os.path.join(buildinstall_topdir, 'x86_64/Server/results'),
|
[mock.call(os.path.join(buildinstall_topdir, 'x86_64/Server/results'),
|
||||||
os.path.join(self.topdir, 'work/x86_64/buildinstall/Server')),
|
os.path.join(self.topdir, 'work/x86_64/buildinstall/Server')),
|
||||||
mock.call(os.path.join(buildinstall_topdir, 'x86_64/Server/logs'),
|
mock.call(os.path.join(buildinstall_topdir, 'x86_64/Server/logs'),
|
||||||
os.path.join(self.topdir, 'logs/x86_64/buildinstall-Server-logs'))
|
os.path.join(self.topdir, 'logs/x86_64/buildinstall-Server-logs'))]
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -371,7 +371,7 @@ class RunrootKojiWrapperTest(KojiWrapperBaseTestCase):
|
|||||||
def test_get_cmd_full(self):
|
def test_get_cmd_full(self):
|
||||||
cmd = self.koji.get_runroot_cmd('tgt', 's390x', ['/bin/echo', '&'],
|
cmd = self.koji.get_runroot_cmd('tgt', 's390x', ['/bin/echo', '&'],
|
||||||
quiet=True, channel='chan',
|
quiet=True, channel='chan',
|
||||||
packages=['strace', 'lorax'],
|
packages=['lorax', 'some_other_package'],
|
||||||
mounts=['/tmp'], weight=1000)
|
mounts=['/tmp'], weight=1000)
|
||||||
self.assertEqual(len(cmd), 14)
|
self.assertEqual(len(cmd), 14)
|
||||||
self.assertEqual(cmd[:3], ['koji', '--profile=custom-koji', 'runroot'])
|
self.assertEqual(cmd[:3], ['koji', '--profile=custom-koji', 'runroot'])
|
||||||
@ -380,7 +380,7 @@ class RunrootKojiWrapperTest(KojiWrapperBaseTestCase):
|
|||||||
self.assertEqual(cmd[-1], 'rm -f /var/lib/rpm/__db*; rm -rf /var/cache/yum/*; set -x; /bin/echo \'&\'')
|
self.assertEqual(cmd[-1], 'rm -f /var/lib/rpm/__db*; rm -rf /var/cache/yum/*; set -x; /bin/echo \'&\'')
|
||||||
self.assertItemsEqual(cmd[3:-3],
|
self.assertItemsEqual(cmd[3:-3],
|
||||||
['--channel-override=chan', '--quiet', '--use-shell',
|
['--channel-override=chan', '--quiet', '--use-shell',
|
||||||
'--task-id', '--weight=1000', '--package=strace',
|
'--task-id', '--weight=1000', '--package=some_other_package',
|
||||||
'--package=lorax', '--mount=/tmp'])
|
'--package=lorax', '--mount=/tmp'])
|
||||||
|
|
||||||
@mock.patch('pungi.wrappers.kojiwrapper.run')
|
@mock.patch('pungi.wrappers.kojiwrapper.run')
|
||||||
|
Loading…
Reference in New Issue
Block a user