Commits

Ralph Bean committed 55ceff7

Comments (0)

Files changed (1)

     @property
     def test_command(self):
         commands = [
-            "pushd %s" % repr(self),
+            "TW2_TEST_ORIGINAL_DIR=$(pwd)"
+            "cd %s" % repr(self),
             "rmvirtualenv %s-venv" % repr(self),
             "mkvirtualenv --no-site-packages %s-venv" % repr(self),
             "python setup.py test -q 2>> ../htmlcov/results-%s" % repr(self),
             "coverage html --omit=*.kid --omit=*samples*",
             "mv htmlcov ../htmlcov/htmlcov-%s" % repr(self),
             "deactivate",
-            "popd",
+            "cd $TW2_TEST_ORIGINAL_DIR",
             "echo \"%s $COV\" >> htmlcov/summary.data" % repr(self),
         ]
         return " ;\n".join(commands)