@test.attr(type='benchmark')
    def test_run_benchmark(self):
        """Run UnixBench test on prepared instance"""
        if self.ssh is None:
            raise self.skipException("Booting failed")
        ssh = self.ssh

        self._correct_ns_if_needed(ssh)

        ssh.exec_command("sudo apt-get update && sudo apt-get upgrade -fy")
        ssh.exec_command("sudo apt-get update")
        ssh.exec_command("sudo apt-get install -y make gcc")
        ssh.exec_command("sudo apt-get install -y libx11-dev libgl1-mesa-dev "
                         "libxext-dev perl perl-modules")
        ssh.exec_command("wget http://byte-unixbench.googlecode.com/files"
                         "/UnixBench5.1.3.tgz")
        ssh.exec_command("tar xvf UnixBench5.1.3.tgz")
        resp = ssh.exec_command("cd UnixBench && ./Run")

        i = resp.find("---------------")
        if i != -1:
            resp = resp[i:]
        resp = "zone: " + self.instance.placement + "\n" + resp

        fail = None
        reference = self._get_benchmark_data()
        for k, v in reference.iteritems():
            i1 = resp.lower().find(k)
            if i1 == -1:
                continue

            k = resp[i1:i1 + len(k)]
            i2 = resp.find("\n", i1)
            outp = resp[i1 + len(k):i2].split()[:2]
            if len(outp) < 2:
                continue

            self.addDetail(k, test_content.text_content(
                outp[1] + "|" + outp[0] + "|Min: " + v[0] + "|Max: " + v[1]))

            if fail is None and float(v[0]) < float(outp[0]):
                fail = (outp[0], outp[1], k, v[0])

        if fail is not None:
            self.assertGreaterEqual(fail[0], fail[1],
                fail[2] + ": " +
                fail[0] + " " + fail[1] + " (current) < " +
                fail[3] + " " + fail[1] + " (AWS)")
dataset/ETHPy150Open openstack/ec2-api/ec2api/tests/functional/obsolete/thirdparty/scenario/aws_compat/test_ec2_unixbench.py/UnixBenchTest.test_run_benchmark/swapped operands of `<`