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

Print rpm-ostree status #59

Merged
merged 1 commit into from Feb 21, 2017
Merged

Conversation

puiterwijk
Copy link
Contributor

Signed-off-by: Patrick Uiterwijk puiterwijk@redhat.com

@puiterwijk
Copy link
Contributor Author

This is explicitly intended to get into the output.
This way, it is possible to figure out what the exact tree ref was in the tested image.

atomictests.py Outdated
"""Print the rpm-ostree status"""
# We want this explicitly output to stdout
out, err, eid = system('rpm-ostree status')
print(out)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is going to print byte string. You may want to convert it into unicode string?
Something similar like out = out.decode('utf-8') before printing the output.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't care about the output type, as long as the actual contents get printed.

def test_print_status(self):
"""Print the rpm-ostree status"""
# We want this explicitly output to stdout
out, err, eid = system('rpm-ostree status')
Copy link
Owner

Choose a reason for hiding this comment

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

Can you please add this in the next line? and then do the print

out = out.decode('utf-8')

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
@kushaldas kushaldas merged commit 77a4232 into kushaldas:master Feb 21, 2017
@puiterwijk puiterwijk deleted the printatomic branch February 22, 2017 00:29
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.

None yet

3 participants