@@ -1,4 +1,4 @@
-import sys, os, time, commands, re, logging, signal
+import sys, os, time, commands, re, logging, signal, glob
from autotest_lib.client.bin import test
from autotest_lib.client.common_lib import error
import kvm_vm, kvm_utils, kvm_subprocess
@@ -269,8 +269,8 @@ def postprocess(test, params, env):
if params.get("keep_ppm_files") != "yes":
logging.debug("'keep_ppm_files' not specified; removing all PPM files"
" from debug dir...")
- rm_cmd = "rm -vf %s" % os.path.join(test.debugdir, "*.ppm")
- kvm_subprocess.run_fg(rm_cmd, logging.debug, "(rm) ", timeout=5.0)
+ for f in glob.glob(os.path.join(test.debugdir, '*.ppm')):
+ os.unlink(f)
# Execute any post_commands
if params.get("post_command"):
Signed-off-by: Avi Kivity <avi@redhat.com> --- client/tests/kvm/kvm_preprocessing.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)