Skip to content

Commit

Permalink
script: add option for debug build
Browse files Browse the repository at this point in the history
See: ceph/ceph-build#2167

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
  • Loading branch information
batrick committed Oct 6, 2023
1 parent be88249 commit ec720e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/script/ptl-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ def get_credits(session, pr, pr_req):
def build_branch(args):
base = args.base
branch = datetime.datetime.utcnow().strftime(args.branch).format(user=USER)
if args.debug_build:
branch = branch + "-debug"
label = args.label
merge_branch_name = args.merge_branch_name
if merge_branch_name is False:
Expand Down Expand Up @@ -389,6 +391,7 @@ def main():
else:
argv = sys.argv[1:]
parser.add_argument('--branch', dest='branch', action='store', default=default_branch, help='branch to create ("HEAD" leaves HEAD detached; i.e. no branch is made)')
parser.add_argument('--debug-build', dest='debug_build', action='store_true', help='append -debug to branch name prompting ceph-build to build with CMAKE_BUILD_TYPE=Debug')
parser.add_argument('--merge-branch-name', dest='merge_branch_name', action='store', default=False, help='name of the branch for merge messages')
parser.add_argument('--base', dest='base', action='store', default=default_base, help='base for branch')
parser.add_argument('--base-path', dest='base_path', action='store', default=BASE_PATH, help='base for branch')
Expand Down

0 comments on commit ec720e9

Please sign in to comment.