1.1 --- a/test.py Mon Nov 16 00:34:47 2009 +0100
1.2 +++ b/test.py Sun Nov 22 04:15:05 2009 +0100
1.3 @@ -37,7 +37,7 @@
1.4 else:
1.5 filename = None
1.6
1.7 - # Make the program.
1.8 + # Load the program.
1.9
1.10 try:
1.11 p = micropython.cmd.get_program(filename, path, args)
1.12 @@ -47,16 +47,8 @@
1.13 else:
1.14 m = p.get_importer().get_module("__main__")
1.15
1.16 - # Report any errors.
1.17 + # Build the program.
1.18
1.19 - except micropython.ProcessingError, exc:
1.20 - print repr(exc)
1.21 - if "-tb" in args:
1.22 - raise
1.23 -
1.24 - # Provide information to any interactive session.
1.25 -
1.26 - else:
1.27 ot = p.get_object_table()
1.28 pt = p.get_parameter_table()
1.29
1.30 @@ -66,4 +58,11 @@
1.31 success = rm.test(m)
1.32 print "Test successful?", success
1.33
1.34 + # Report any errors.
1.35 +
1.36 + except micropython.ProcessingError, exc:
1.37 + print repr(exc)
1.38 + if "-tb" in args:
1.39 + raise
1.40 +
1.41 # vim: tabstop=4 expandtab shiftwidth=4