Skip to content

Do not show warnings when using scripted occ output - #28659

Merged
phil-davis merged 1 commit into
masterfrom
occ-script-no-warnings
Aug 14, 2017
Merged

phil-davis merged 1 commit into
masterfrom
occ-script-no-warnings

Conversation

@phil-davis

Copy link
Copy Markdown
Contributor

Description

Add --no-warnings option so that these testing scripts can rely on getting just the information output that they expect.

Related Issue

#28638

Motivation and Context

If testing, and switching branches etc., it is easy to accidentally get in a state where a message like this comes out from the occ command:

ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade

and that messes up automated parsing of the expected app:list or config:system:get output.

How Has This Been Tested?

Switch branches/tags to ones with different oC versions to induce this.
Run some integration and UI tests.
Check that skeletondirectory and testing app status are preserved OK.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@phil-davis
phil-davis merged commit 59560be into master Aug 14, 2017
@phil-davis
phil-davis deleted the occ-script-no-warnings branch August 14, 2017 05:45
@phil-davis

Copy link
Copy Markdown
Contributor Author

Backport stable10 #28661

@lock

lock Bot commented Aug 2, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants