Commits

Anonymous committed 9bddbf7

Streamline tests to use pynie executable directly, instead of
intermediate bytecode file.

Comments (0)

Files changed (1)

 
 from subprocess import Popen,PIPE
 
-bin_dir = Popen("parrot_config bindir", shell=True, stdout=PIPE).stdout.readline().rstrip()
-parrot = '%s/parrot' % (bin_dir)
-parrot.replace(r'\\', '/')
-
 class PynieParrotTests(subunit.ExecTestCase):
 
     def __init__(self, methodName='runTest'):
-        self.command = parrot
+        self.command = './pynie'
         subunit.ExecTestCase.__init__(self, methodName)
 
     def test_01_simplest(self):
-        """pynie.pbc Lib/test/bootstrap/simplest.py"""
+        """Lib/test/bootstrap/simplest.py"""
         
     def test_02_literals(self):
-        """pynie.pbc Lib/test/bootstrap/literals.py"""
+        """Lib/test/bootstrap/literals.py"""
 
     def test_03_math_ops(self):
-        """pynie.pbc Lib/test/bootstrap/op-math.py"""
+        """Lib/test/bootstrap/op-math.py"""
 
     def test_04_bitwise_ops(self):
-        """pynie.pbc Lib/test/bootstrap/op-bitwise.py"""
+        """Lib/test/bootstrap/op-bitwise.py"""
 
     def test_05_variables(self):
-        """pynie.pbc Lib/test/bootstrap/variables.py"""
+        """Lib/test/bootstrap/variables.py"""
 
     def test_06_statements(self):
-        """pynie.pbc Lib/test/bootstrap/control-flow.py"""
+        """Lib/test/bootstrap/control-flow.py"""
 
     def test_07_compare_ops(self):
-        """pynie.pbc Lib/test/bootstrap/op-cmp.py"""
+        """Lib/test/bootstrap/op-cmp.py"""
 
     def test_08_lists(self):
-        """pynie.pbc Lib/test/bootstrap/lists.py"""
+        """Lib/test/bootstrap/lists.py"""
 
     def test_09_assign_ops(self):
-        """pynie.pbc Lib/test/bootstrap/op-assign.py"""
+        """Lib/test/bootstrap/op-assign.py"""
 
     def test_10_logic_ops(self):
-        """pynie.pbc Lib/test/bootstrap/op-boolean.py"""
+        """Lib/test/bootstrap/op-boolean.py"""
 
     def test_11_functions(self):
-        """pynie.pbc Lib/test/bootstrap/functions.py"""
+        """Lib/test/bootstrap/functions.py"""
 
     def test_12_builtins(self):
-        """pynie.pbc Lib/test/bootstrap/builtins.py"""
+        """Lib/test/bootstrap/builtins.py"""
 
     def test_13_exceptions(self):
-        """pynie.pbc Lib/test/bootstrap/exceptions.py"""
+        """Lib/test/bootstrap/exceptions.py"""
 
     def test_math_ops_compare(self):
-        """pynie.pbc Lib/test/bootstrap/op-math-compare.py"""
+        """Lib/test/bootstrap/op-math-compare.py"""
 
     def test_logic_ops_compare(self):
-        """pynie.pbc Lib/test/bootstrap/op-logic-compare.py"""
+        """Lib/test/bootstrap/op-logic-compare.py"""
 
     def test_class_list(self):
-        """pynie.pbc Lib/test/bootstrap/class-list.py"""
+        """Lib/test/bootstrap/class-list.py"""
 
     def test_class_str(self):
-        """pynie.pbc Lib/test/bootstrap/class-str.py"""
+        """Lib/test/bootstrap/class-str.py"""
 
     def test_grammar(self):
-        """pynie.pbc Lib/test/bootstrap/grammar.py"""
+        """Lib/test/bootstrap/grammar.py"""
 
     def test_list_comps(self):
-        """pynie.pbc Lib/test/bootstrap/listcomps.py"""
+        """Lib/test/bootstrap/listcomps.py"""
     
 
 if __name__ == '__main__':