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

Also ensure SCC_EMAIL is not typing nothing #3473

Merged
merged 2 commits into from Aug 28, 2017
Merged

Conversation

okurz
Copy link
Member

@okurz okurz commented Aug 28, 2017

@okurz
Copy link
Member Author

okurz commented Aug 28, 2017

Nah, I was wrong. Also SLE 12 SP3 works fine with no email address: https://openqa.suse.de/tests/1058778#step/scc_registration/2

Copy link
Member

@rwx788 rwx788 left a comment

Choose a reason for hiding this comment

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

@okurz considering your last comment, not sure if we need this change, but feel free to merge if so.

Also ensure SCC_EMAIL is not typing nothing and therefore fix a warning about
type_string called on an undef value. However we want to still be able to test
an empty regcode (and email) typing explicitly.

See https://openqa.suse.de/tests/1129995#step/scc_registration/2
@DrMullings
Copy link
Contributor

LGTM

@okurz
Copy link
Member Author

okurz commented Aug 28, 2017

@rwx788 I updated the commit to just prevent perl warnings when trying to call type_string on an undef value. We now still allow empty values for the test variable so that we could also test explicitly empty values.

@okurz okurz merged commit 34ab6b2 into os-autoinst:master Aug 28, 2017
@okurz okurz deleted the fix/leanos branch August 28, 2017 12:45
@rwx788
Copy link
Member

rwx788 commented Aug 28, 2017

We could have used get_var('SCC_EMAIL', '') then. But fine, doesn't hurt much.

@okurz
Copy link
Member Author

okurz commented Aug 28, 2017

@rwx788 so call type_string with an empty string? Not much better IMHO

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