Commits

Akeem Wells authored b20b1e8da2b
Change traceback from 'line' to 'short'
No tags

casatestutils/runtest.py

Modified
519 519 try:
520 520 print("Copying: {} to {}".format(workdir + "tests/",test), workdir + "{}/".format(test if not test.endswith(".py") else test[:-3]))
521 521 shutil.copy2("{}{}.py".format(workdir + "tests/",test), workdir + "{}/".format(test if not test.endswith(".py") else test[:-3]))
522 522 except:
523 523 traceback.print_exc()
524 524
525 525 # https://docs.pytest.org/en/stable/usage.html
526 526 if verbose:
527 527 cmd = ["--verbose"] + ["--tb=short"] + cmd
528 528 elif not verbose:
529 - cmd = ["-ra"] + ["--tb=line"] + cmd
529 + cmd = ["-ra"] + ["--tb=short"] + cmd
530 530
531 531 if DRY_RUN:
532 532 cmd = ["--collect-only"] + cmd
533 533
534 534 if not os.path.isdir(workpath + '/xml/{}/'.format(test if not test.endswith(".py") else test[:-3])):
535 535 os.makedirs(workpath + '/xml/{}/'.format(test if not test.endswith(".py") else test[:-3]))
536 536 xmlfile = workpath + 'xml/{}/nose.xml'.format(test if not test.endswith(".py") else test[:-3])
537 537
538 538 #########
539 539 #============================================================ warnings summary =====================================================
595 595 os.makedirs(workdir + "{}/".format(dirname))
596 596 cmd = [ workdir + "{}/".format(dirname) ] + cmd
597 597 try:
598 598 shutil.copy2(testpath, workdir + "{}/".format(dirname))
599 599 except:
600 600 traceback.print_exc()
601 601
602 602 if verbose:
603 603 cmd = ["--verbose"] + ["--tb=short"] + cmd
604 604 elif not verbose:
605 - cmd = ["-ra"] + ["--tb=line"] + cmd
605 + cmd = ["-ra"] + ["--tb=short"] + cmd
606 606
607 607
608 608 if DRY_RUN:
609 609 cmd = ["--collect-only"] + cmd
610 610
611 611 if not os.path.isdir(workpath + '/xml/{}/'.format(dirname)):
612 612 os.makedirs(workpath + '/xml/{}/'.format(dirname))
613 613 xmlfile = workpath + 'xml/{}/nose.xml'.format(dirname)
614 614
615 615 #########

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut