def run_command(self, cmd, shell=True):
        """! Runs command from command line.

        @param cmd Command to execute
        @param shell True if shell command should be executed (eg. ls, ps)

        @details Function prints 'cmd' return code if execution failed

        @return True if command successfully executed
        """
        result = True
        try:
            ret = call(cmd, shell=shell)
            if ret:
                self.print_plugin_error((int(ret), cmd)% "[ret=%d] Command: %s")
                return False
        except Exception as e:
            result = False
            self.print_plugin_error("[ret=%d] Command: %s"% (int(ret), cmd))
            self.print_plugin_error(str(e))
        return result
dataset/ETHPy150Open ARMmbed/htrun/mbed_host_tests/host_tests_plugins/host_test_plugins.py/HostTestPluginBase.run_command/swapped operands of `%`