summaryrefslogtreecommitdiff
path: root/tko/delete_job_results
diff options
context:
space:
mode:
authorjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-06-06 21:10:57 +0000
committerjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-06-06 21:10:57 +0000
commit45510bde8d4a2c6d08b2331f723ec5d37b6cdbe2 (patch)
tree4e2892a8aa650003f797983621cfd86290ead6af /tko/delete_job_results
parente7e5318f8309211f07a3683fb168d21718f701a7 (diff)
Convert all python code to use four-space indents instead of eight-space tabs.
Signed-off-by: John Admanski <jadmanski@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@1658 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/delete_job_results')
-rw-r--r--tko/delete_job_results7
1 files changed, 3 insertions, 4 deletions
diff --git a/tko/delete_job_results b/tko/delete_job_results
index 49779887..f747510e 100644
--- a/tko/delete_job_results
+++ b/tko/delete_job_results
@@ -7,15 +7,14 @@ import db
usage = "usage: delete_job_results <job tag>"
if len(sys.argv) < 2:
- print usage
- sys.exit(2)
+ print usage
+ sys.exit(2)
tag = sys.argv[1]
resultsdir = os.path.abspath(os.path.join(thisdir, '../results', tag))
db = db.db()
if not db.find_job(tag):
- raise "Job tag %s does not exist in database" % tag
+ raise "Job tag %s does not exist in database" % tag
db.delete_job(tag)
shutil.rmtree(resultsdir)
-