#! /usr/bin/python
import os
# ___________________________________________________________
# edit these paths!
DIR = '/home/username/autotest'
SUMMARY_URL = '/pypytest/summary.html'
# ___________________________________________________________
print "Content-Type: text/html"
print
print "
"
print "Manual test run"
print ""
LOCK = os.path.join(DIR, 'LOCK')
if os.path.islink(LOCK):
print "Tests seem to be already running: there is a LOCK file"
print "in %s." % (DIR,)
else:
SCHEDULE = os.path.join(DIR, 'SCHEDULE')
f = open(SCHEDULE, 'w')
f.close()
print "Run scheduled."
print "
"
print "It can take 2 minutes before the run starts,"
print "and then you should see a new in-progress run"
print 'on the summary page.' % SUMMARY_URL
print ""