Send the job dir, not the individual tests, to site_parse

Signed-off-by: Rachel Kroll <rkroll@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3156 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/parse.py b/tko/parse.py
index a832a36..67f76a5 100755
--- a/tko/parse.py
+++ b/tko/parse.py
@@ -283,12 +283,13 @@
                 parse_path(db, path, options.level, options.reparse,
                            options.mailit)
 
-                if options.site_do_post is True:
-                    site_post_parse_job(path)
-
             finally:
                 fcntl.flock(lockfile, fcntl.LOCK_UN)
                 lockfile.close()
+
+        if options.site_do_post is True:
+            site_post_parse_job(results_dir)
+
     except:
         pid_file_manager.close_file(1)
         raise