From 9c056ce8ace0ea69db6cb644f1b7e70b99b0349e Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Sat, 16 Mar 2024 01:45:35 -0400 Subject: [PATCH] tests: Add a test for a leftover eol-rebase symlink This tests the fix in the previous commit. (cherry picked from commit be862f498978834d7ae7e1e7e9c6435bba03f51b) --- tests/test-repo.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test-repo.sh b/tests/test-repo.sh index 4c24cd3e..5f1bf76d 100644 --- a/tests/test-repo.sh +++ b/tests/test-repo.sh @@ -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"