Enforce use of a directory to put results in from autoserv

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2312 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autoserv b/server/autoserv
index a8c9fa5..2352871 100755
--- a/server/autoserv
+++ b/server/autoserv
@@ -10,7 +10,7 @@
 mbligh@google.com (Martin J. Bligh)
 """
 
-import sys, os, re, traceback, signal
+import sys, os, re, traceback, signal, time
 
 import common
 from autotest_lib.server import server_job, utils, autoserv_parser
@@ -165,6 +165,9 @@
         sys.exit(1)
 
     results  = parser.options.results
+    if not results:
+        results = 'results.' + time.strftime('%Y-%m-%d-%H.%M.%S')
+        print "Results placed in %s" % results
     results  = os.path.abspath(results)
     write_pidfile = parser.options.write_pidfile
     if write_pidfile: