From 4ddeaaa8e23c8bba23c7be83ba6d07a4c9efdaa5 Mon Sep 17 00:00:00 2001
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
Date: Wed, 6 May 2009 22:43:14 -0300
Subject: [PATCH 7/7] Import fixes, removing unnecessary shebangs
---
client/tests/kvm_runtest_2/calc_md5sum_1m.py | 2 --
client/tests/kvm_runtest_2/kvm_preprocessing.py | 10 ++--------
client/tests/kvm_runtest_2/kvm_runtest_2.py | 4 ----
client/tests/kvm_runtest_2/kvm_tests.py | 2 --
client/tests/kvm_runtest_2/kvm_utils.py | 3 ---
5 files changed, 2 insertions(+), 19 deletions(-)
@@ -12,5 +12,3 @@ else:
else:
print kvm_utils.md5sum_file(fname, 1024*1024)
-
-
@@ -1,13 +1,7 @@
-#!/usr/bin/python
-
-import sys, os, time, commands, re
-
+import sys, os, time, commands, re, logging
from autotest_lib.client.bin import test
from autotest_lib.client.common_lib import error
-
-import kvm_vm
-import kvm_utils
-import logging
+import kvm_vm, kvm_utils
def preprocess_image(test, params):
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
import sys, os, time, shelve, random, resource, logging
from autotest_lib.client.bin import test
from autotest_lib.client.common_lib import error
@@ -46,8 +44,6 @@ class kvm_runtest_2(test.test):
# Enable core dumps
resource.setrlimit(resource.RLIMIT_CORE, (-1, -1))
- # Set the logging prefix
- #kvm_log.set_prefix(params.get("shortname"))
# Report the parameters we've received and write them as keyvals
logging.debug("Test parameters:")
@@ -299,9 +299,7 @@ def run_autotest(test, params, env):
raise error.TestError(message_error)
-
# I'm not sure if we need these...
-
def internal_yum_update(session, command, prompt, timeout):
session.sendline(command)
end_time = time.time() + timeout
@@ -1,11 +1,8 @@
-#!/usr/bin/python
-
import md5, thread, subprocess, time, string, random, socket, os, signal, pty
import select, re, logging
# Functions for working with dicts obtained from the test config file
-
def get_sub_dict(dict, name):
"""Return a "sub-dict" corresponding to a specific object.
--
1.6.2.2