def check_status(repo_path, db_url): pr = PatchRepo(repo_path) db = Db(db_url) result = db.test(pr) return 0 if result else 1