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

saving y2logs after the installation has been finished #470

Merged
merged 2 commits into from Oct 29, 2018

Conversation

schubi2
Copy link
Member

@schubi2 schubi2 commented Oct 25, 2018

No description provided.

@coveralls
Copy link

coveralls commented Oct 25, 2018

Coverage Status

Coverage decreased (-0.004%) to 17.73% when pulling 9a5b3e7 on master-fate-325737 into 8d1a85f on master.

Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

I would check whether save_y2logs is available or not before trying to execute it. Additionally, I would like to see some test. I am fine if you just move this code to a separate function and write a test only for that function (especially after adding support -if needed- to handle the case where the script is not available).

However, is this code is used during 1st stage too? In that case, we should put it in some common place. What do you think? (Some helper or just a simple client that you call with WFM.CallFunction, I am not sure).

@@ -349,6 +350,11 @@ def main
# Invoke SnapshotsFinish client to perform snapshots (if needed)
WFM.CallFunction("snapshots_finish", ["Write"])

if ProductFeatures.GetBooleanFeature("globals", "save_y2logs")
Yast::SCR.Execute(Yast::Path.new(".target.bash"),
"/usr/sbin/save_y2logs '#{Yast::Directory.logdir}/yast-installation-logs.tar.xz'")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can it happen that save_y2logs is not installed?

Copy link
Member Author

Choose a reason for hiding this comment

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

The package dependencies require it.

@schubi2 schubi2 merged commit 54d1d09 into master Oct 29, 2018
@schubi2 schubi2 deleted the master-fate-325737 branch October 29, 2018 12:46
@yast-bot
Copy link
Contributor

✔️ Public Jenkins job #12 successfully finished
✔️ Created OBS submit request #645264

@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #12 successfully finished
✔️ Created IBS submit request #175960

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

4 participants