Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Multi successtag #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

wfailla
Copy link
Contributor

@wfailla wfailla commented Jul 3, 2017

This will add the functionality that multiple success tags are passed as parameter:

--success-tag foo:bar --success-tag fred:waldo

As requested in #7 .

Willy Failla added 2 commits July 3, 2017 08:30
allow for multiple success tags by specifying the option more that once

TODO: documentation of function
@@ -124,9 +124,10 @@ def set_commitfailures(self, cf):
"""
self.commit_failures = cf

def set_success_tag(self, repo):
def append_success_tag(self, tag):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change tag to some thing that will not be confused with repo:TAG.

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to different MR

@@ -75,7 +76,7 @@ def main(argv):
["help", "checkout", "dry-run", "images", "skip-failure-commit",
"list=", "list-bids", "entry=", "target=", "match-build-id",
"new-build-id=", "upgrade=", "append-local-conf=", "success-tag="])
except getopt.GetoptError, e:
except getopt.GetoptError as e:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to different MR

@@ -98,7 +99,8 @@ def main(argv):
elif opt in ['-F', '--skip-failure-commit']:
redo.set_commitfailures(False)
elif opt in ['--success-tag']:
redo.set_success_tag(arg)
# change to multiple --success-tag calls
redo.append_success_tag(arg.split)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove faulty .split

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant