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:
Chris Williams
2024-03-16 01:45:35 -04:00
committed by Simon McVittie
parent 46efefbf44
commit 9c056ce8ac

View File

@@ -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"