Fix some Python brainos in testlib (except e is not valid form).
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Fri, 7 Feb 2014 06:20:27 +0000 (22:20 -0800)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Fri, 7 Feb 2014 06:20:27 +0000 (22:20 -0800)
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
testsuite/driver/testlib.py

index 8c8c60d..d8fbd02 100644 (file)
@@ -675,7 +675,7 @@ def test_common_work (name, opts, func, args):
                     result = runCmdFor(name, 'cd ' + getTestOpts().testdir + ' && ' + cleanCmd)
                     if result != 0:
                         framework_fail(name, 'cleaning', 'clean-command failed: ' + str(result))
-            except e:
+            except:
                 framework_fail(name, 'cleaning', 'clean-command exception')
 
         package_conf_cache_file_end_timestamp = get_package_cache_timestamp();
@@ -738,7 +738,7 @@ def do_test(name, way, func, args):
                 result = runCmdFor(name, 'cd ' + getTestOpts().testdir + ' && ' + preCmd)
                 if result != 0:
                     framework_fail(name, way, 'pre-command failed: ' + str(result))
-        except e:
+        except:
             framework_fail(name, way, 'pre-command exception')
 
         try: