source: mailjam/bin/run_tests@ 13:f1f11159dbed

Last change on this file since 13:f1f11159dbed was 10:d5329a2a05b7, checked in by Borja Lopez <borja@…>, 13 years ago

Fully added support for the configuration file. Now all the code uses
postman.conf to read the configuration parameters from it

Added a tests/postman.conf configuration file with specific configurtion
to use while testing (mostly tmp paths)

Updated the run_tests script to delete the temporary directory where
data is saved while running tests

Updated the tests modules/files so they use the tests config file

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