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

fix plist parsing for skip files #2195

Merged
merged 1 commit into from
Jul 4, 2019

Conversation

gyorb
Copy link
Contributor

@gyorb gyorb commented Jun 28, 2019

The intoduced new plist xml parsing method with lxml
was not introduced for the use cases where the a skip file
was used. In case of a skip file the report plist files
can be rewritten (the reports based on the skip file content)
are removed.

Previous tests did not fail because a second skip is done
at the server side during storage and the server skip tests
worked on the stored reports.

@gyorb gyorb added bugfix 🔨 analyzer 📈 Related to the analyze commands (analysis driver) labels Jun 28, 2019
@gyorb gyorb added this to the release 6.10.0 milestone Jun 28, 2019
@gyorb gyorb force-pushed the fix-plist-skip branch 2 times, most recently from 8980c42 to 4d3483a Compare June 28, 2019 14:55
@Ericsson Ericsson deleted a comment Jun 28, 2019
@Ericsson Ericsson deleted a comment Jun 28, 2019
@Ericsson Ericsson deleted a comment Jun 28, 2019
@Ericsson Ericsson deleted a comment Jun 28, 2019
@Ericsson Ericsson deleted a comment Jun 28, 2019
@@ -97,7 +97,7 @@ def parse(self, fileobj):
return self.root


def read_plist(path):
def load_plist(plist_file):
Copy link
Contributor

Choose a reason for hiding this comment

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

@gyorb The argument of this function is not a plist file. It is the content of a plist file.
Also this function will not load the given plist file, it will only parse it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually it is a file object and not the file content, I've made some renaming to make it more explicit.

@gyorb gyorb requested a review from csordasmarton July 2, 2019 13:38
@gyorb gyorb force-pushed the fix-plist-skip branch 2 times, most recently from 0c8d4fa to 7fe4a78 Compare July 2, 2019 14:01
@Ericsson Ericsson deleted a comment Jul 2, 2019
The introduced new plist xml parsing method with lxml
was not introduced for the use cases where a skip file
was used. In case of a skip file the report plist files
can be rewritten (the reports based on the skip file content)
are removed.

Previous tests did not fail because a second skip is done
at the server side during storage and the server skip tests
worked on the stored reports.
@Ericsson Ericsson deleted a comment Jul 3, 2019
@Ericsson Ericsson deleted a comment Jul 3, 2019
@Ericsson Ericsson deleted a comment Jul 3, 2019
@Ericsson Ericsson deleted a comment Jul 3, 2019
@Ericsson Ericsson deleted a comment Jul 3, 2019
@gyorb gyorb changed the title fix plist parsing if for skip files fix plist parsing for skip files Jul 4, 2019
@csordasmarton csordasmarton merged commit c93481f into Ericsson:master Jul 4, 2019
@gyorb gyorb deleted the fix-plist-skip branch August 9, 2019 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) bugfix 🔨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants