def main(): """Main entry point when calling from the command line""" kwargs = wptcommandline.parse_args() if kwargs["prefs_root"] is None: kwargs["prefs_root"] = os.path.abspath(os.path.join(here, "prefs")) setup_logging(kwargs, {"raw": sys.stdout}) if kwargs["list_test_groups"]: list_test_groups(**kwargs) elif kwargs["list_disabled"]: list_disabled(**kwargs) else: return run_tests(**kwargs)
def main(): """Main entry point when calling from the command line""" kwargs = wptcommandline.parse_args() try: if kwargs["prefs_root"] is None: kwargs["prefs_root"] = os.path.abspath(os.path.join(here, "prefs")) setup_logging(kwargs, {"raw": sys.stdout}) return start(**kwargs) except Exception: if kwargs["pdb"]: import pdb, traceback print traceback.format_exc() pdb.post_mortem() else: raise
def main(): """Main entry point when calling from the command line""" try: kwargs = wptcommandline.parse_args() if kwargs["prefs_root"] is None: kwargs["prefs_root"] = os.path.abspath(os.path.join(here, "prefs")) setup_logging(kwargs, {"raw": sys.stdout}) if kwargs["list_test_groups"]: list_test_groups(**kwargs) elif kwargs["list_disabled"]: list_disabled(**kwargs) else: return not run_tests(**kwargs) except Exception: import pdb, traceback print traceback.format_exc() pdb.post_mortem()
def main(): """Main entry point when calling from the command line""" try: kwargs = wptcommandline.parse_args() if kwargs["prefs_root"] is None: kwargs["prefs_root"] = os.path.abspath(os.path.join(here, "prefs")) setup_logging(kwargs, {"raw": sys.stdout}) if kwargs["list_test_groups"]: list_test_groups(**kwargs) elif kwargs["list_disabled"]: list_disabled(**kwargs) else: return run_tests(**kwargs) except Exception: import pdb, traceback print traceback.format_exc() pdb.post_mortem()