source: mailjam/bin/run_tests@ 26:0dcb95910259

Last change on this file since 26:0dcb95910259 was 16:cd4170142d87, checked in by Borja Lopez <borja@…>, 13 years ago

Renamed the project to Mailjam

  • Property exe set to *
File size: 551 bytes
Line 
1#!/usr/bin/env python
2#
3# Run the tests for the mailjam package
4
5import os, shutil, sys, unittest
6
7try:
8 from mailjam.tests import *
9except ImportError:
10 sys.path.append(os.path.join(os.path.dirname(__file__), '../'))
11 try:
12 from mailjam.tests import *
13 except ImportError:
14 raise SystemExit('Could not find mailjam on your filesystem')
15
16try:
17 unittest.main()
18finally:
19 # FIXME: hardcoded path to the tmp directory, we should read this path
20 # from mailjam/tests/mailjam.conf
21 shutil.rmtree('/tmp/mailjam-tests')
Note: See TracBrowser for help on using the repository browser.