aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-08-17 11:29:29 -0400
committerWaylan Limberg <waylan@gmail.com>2011-08-17 11:29:29 -0400
commit39e9e08e783df4054b6448f4285ca31c4db24a18 (patch)
tree5a33a675be2e54f270bb0ec303a28e5e70854ac1
parent85f355b08e07cc8edbc33dbfb571f4cc158796f4 (diff)
downloadmarkdown-39e9e08e783df4054b6448f4285ca31c4db24a18.tar.gz
markdown-39e9e08e783df4054b6448f4285ca31c4db24a18.tar.bz2
markdown-39e9e08e783df4054b6448f4285ca31c4db24a18.zip
Fixed the fabfile geterate_test(s) commands so they actually import the testing framework.
-rw-r--r--fabfile.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/fabfile.py b/fabfile.py
index 007fd7f..472c769 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -63,17 +63,21 @@ def build_tests(version=_pyversion[:3]):
def generate_test(file):
""" Generate a given test. """
+ import sys, os
+ sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
import tests
config = tests.get_config(os.path.dirname(file))
root, ext = os.path.splitext(file)
- if ext == config.get(get_section(os.path.basename(root), config),
+ if ext == config.get(tests.get_section(os.path.basename(root), config),
'input_ext'):
tests.generate(root, config)
else:
- print test, 'does not have a valid file extension. Check config.'
+ print file, 'does not have a valid file extension. Check config.'
def generate_tests():
""" Generate all outdated tests. """
+ import sys, os
+ sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
from tests import generate_all
generate_all()