mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-03 14:56:47 -04:00
tests: Add a test for a leftover eol-rebase symlink
This tests the fix in the previous commit.
(cherry picked from commit be862f4989)
This commit is contained in:
committed by
Simon McVittie
parent
46efefbf44
commit
9c056ce8ac
@@ -464,6 +464,14 @@ assert_has_symlink $HOME/.var/app/org.test.Hello
|
||||
assert_has_file $HOME/.var/app/org.test.Hello/data/a-file
|
||||
assert_has_file $HOME/.var/app/org.test.Hello/data/another-file
|
||||
|
||||
# Simulate removal of app data dir
|
||||
rm -rf $HOME/.var/app/org.test.NewHello
|
||||
|
||||
${FLATPAK} run org.test.NewHello >&2
|
||||
|
||||
# Ensure the data dir is re-created instead of migrating the symlink
|
||||
assert_has_dir $HOME/.var/app/org.test.NewHello
|
||||
|
||||
${FLATPAK} ${U} uninstall -y org.test.NewHello org.test.Platform >&2
|
||||
|
||||
ok "eol-rebase"
|
||||
|
||||
Reference in New Issue
Block a user