Skip to content

test: delete any existing app code before copying app-under-test#56

Merged
phil-davis merged 1 commit intomainfrom
remove-any-app-code-first
Apr 24, 2026
Merged

test: delete any existing app code before copying app-under-test#56
phil-davis merged 1 commit intomainfrom
remove-any-app-code-first

Conversation

@phil-davis
Copy link
Copy Markdown
Contributor

The owncloud core tarball often has some extra apps bundled in it. For example, notifications or firstrunwizard.

But when running acceptance tests for one of these "bundled" apps, we want to ensure that we are running the app code from the PR branch.

So, before copying the app code to the server, first delete any existing app code. "rm -rf" has been used so that it always deletes the whole directory tree, and does not complain if the directory does not exist. That allows us to always do this "rm" in the setup for every app.

The owncloud core tarball often has some extra apps bundled in it.
For example, notifications or firstrunwizard.

But when running acceptance tests for one of these "bundled" apps,
we want to ensure that we are running the app code from the PR
branch.

So, before copying the app code to the server, first delete any
existing app code. "rm -rf" has been used so that it always deletes
the whole directory tree, and does not complain if the directory
does not exist. That allows us to always do this "rm" in the setup
for every app.
@phil-davis
Copy link
Copy Markdown
Contributor Author

Tested with owncloud/firstrunwizard#191 and the CI passes there.

Also helps for notifications app owncloud/notifications#394

@phil-davis phil-davis marked this pull request as ready for review April 24, 2026 11:10
@phil-davis phil-davis merged commit 9815ef6 into main Apr 24, 2026
19 checks passed
@phil-davis phil-davis deleted the remove-any-app-code-first branch April 24, 2026 11:15
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.

2 participants