#!/usr/bin/env python

from subprocess import call

from pyvirtualdisplay import Display


if __name__ == '__main__':
    display = Display(visible=0, size=(1440, 900))
    display.start()

    errs = 0
    tests = ['ft.testcrud', 'ft.livevalidation', "user_contacts"]
    for test in tests:
        print "running '%s'" % test
        err = call(["python", "contacts/manage.py", "test", test])
        if err:
            print "Failed\n"
        else:
            print "Passed\n"
        errs += err

    exit(errs)

#!/usr/bin/env python

from subprocess import call

from pyvirtualdisplay import Display


if __name__ == '__main__':
    display = Display(visible=0, size=(1440, 900))
    display.start()

    errs = 0
    tests = ['ft.tests', 'ft.livevalidation', "user_contacts"]
    for test in tests:
        print "running '%s'" % test
        err = call(["python", "contacts/manage.py", "test", test])
        if err:
            print "Failed\n"
        else:
            print "Passed\n"
        errs += err

    exit(errs)

fix name of ft.tests