about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-06 23:01:06 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-06 23:12:36 -0700
commit21b5cf52e2e31e26529d9b47fc6fafdf88a73f75 (patch)
tree8e4c6652e02f32c4f962fe2ad1f08b053f3e24dc
parenteca07d6a6bb155947fda25d12e3067dfb25d9abf (diff)
downloadmu-21b5cf52e2e31e26529d9b47fc6fafdf88a73f75.tar.gz
4315
-rwxr-xr-xsubx/edit2
-rwxr-xr-xsubx/gg (renamed from subx/g2)0
2 files changed, 1 insertions, 1 deletions
diff --git a/subx/edit b/subx/edit
index 39aa9d38..d229c654 100755
--- a/subx/edit
+++ b/subx/edit
@@ -7,4 +7,4 @@ then
   exit 1
 fi
 
-$EDITOR ./teensy/test$1*.[cs]
+eval $EDITOR ./teensy/test$1*.[cs]
diff --git a/subx/g2 b/subx/gg
index 03b356f3..03b356f3 100755
--- a/subx/g2
+++ b/subx/gg
='#n17'>17
18
19
20
21
                 



                                                                   





                                        
 



                                                                                       
 
                                                                  


                                                                        
#!/usr/bin/python
"""Run all the tests inside the test/ directory as a test suite."""
if __name__ == '__main__':
	import unittest
	from test import *
	from sys import exit, argv

	try:
		verbosity = int(argv[1])
	except IndexError:
		verbosity = 2

	tests = []
	for key, val in vars().copy().items():
		if key.startswith('tc_'):
			tests.extend(v for k,v in vars(val).items() if type(v) == type)

	suite = unittest.TestSuite(map(unittest.makeSuite, tests))
	result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
	if len(result.errors) + len(result.failures) > 0:
		exit(1)