Grammalecte  Check-in [17236bc10d]

Overview
Comment:[build] error message for tests
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | build
Files: files | file ages | folders
SHA3-256: 17236bc10d231ecc8f13c4f983c5120f21b494705c0e2e9dfd237e02ead949d9
User & Date: olr on 2017-12-18 14:16:11
Other Links: manifest | tags
Context
2017-12-18
14:46
[build] add built data structures within sources check-in: 1cffa1f8c4 user: olr tags: build, trunk
14:16
[build] error message for tests check-in: 17236bc10d user: olr tags: build, trunk
14:04
[doc] first build instructions check-in: 5de20bed38 user: olr tags: doc, trunk
Changes

Modified make.py from [2aed0ffb52] to [29a87bfcf1].

   336    336               # tests
   337    337               if xArgs.tests or xArgs.perf or xArgs.perf_memo:
   338    338                   print("> Running tests")
   339    339                   try:
   340    340                       tests = importlib.import_module("grammalecte."+sLang+".tests")
   341    341                       print(tests.__file__)
   342    342                   except ImportError:
   343         -                    print("# Error. Couldn't import file {}_test.py in folder tests".format(sLang))
          343  +                    print("# Error. Import failed:" + "grammalecte."+sLang+".tests")
          344  +                    traceback.print_exc()
   344    345                   else:
   345    346                       if xArgs.tests:
   346    347                           xTestSuite = unittest.TestLoader().loadTestsFromModule(tests)
   347    348                           unittest.TextTestRunner().run(xTestSuite)
   348    349                       if xArgs.perf or xArgs.perf_memo:
   349    350                           hDst = open("./gc_lang/"+sLang+"/perf_memo.txt", "a", encoding="utf-8", newline="\n")  if xArgs.perf_memo  else None
   350    351                           tests.perf(sVersion, hDst)