提交 ff4e6741 编写于 作者: C Cleber Rosa

trinity example test: fix fetch of tarball parameter and update to 1.5

Because of the parameter behaviour change this test was failing to get
the name of the tarball to use during the test.

Once that was fixed, there was a couple of build errors. Instead of
debugging the build of the 1.4 version, I tried version 1.5, which
built without any problems. Let's use this oppotunity to fix the
test (wrapper) and update the (original test) tarball.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 b6488cce
......@@ -16,7 +16,7 @@ class TrinityTest(test.Test):
Trinity syscall fuzzer wrapper.
:see: http://codemonkey.org.uk/projects/trinity/
:src: http://codemonkey.org.uk/projects/trinity/trinity-1.4.tar.xz (repackaged)
:src: http://codemonkey.org.uk/projects/trinity/trinity-1.5.tar.xz (repackaged)
:param tarball: Path to the trinity tarball relative to deps dir.
:param stress: Name of the syscall you want to stress.
......@@ -28,9 +28,10 @@ class TrinityTest(test.Test):
"""
Build trinity.
"""
tarball_path = self.get_data_path(self.params.get('tarball'))
tarball = self.params.get('tarball', default='trinity-1.5.tar.bz2')
tarball_path = self.get_data_path(tarball)
archive.extract(tarball_path, self.srcdir)
self.srcdir = os.path.join(self.srcdir, 'trinity-1.4')
self.srcdir = os.path.join(self.srcdir, 'trinity-1.5')
os.chdir(self.srcdir)
process.run('./configure.sh')
build.make(self.srcdir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册