From 9908eb27c8eee8d7619f326643f8e1c6803bbfdb Mon Sep 17 00:00:00 2001 From: Jon Massey Date: Tue, 23 Jul 2024 13:43:23 +0100 Subject: [PATCH] Add RStudio autosave settings to postCreate test --- tests/postCreate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/postCreate.sh b/tests/postCreate.sh index 61fbc72..f7860dc 100644 --- a/tests/postCreate.sh +++ b/tests/postCreate.sh @@ -16,8 +16,11 @@ opensafely --version # check R working directory [ "$(Rscript -e 'getwd()')" == '[1] "/tmp/testdir"' ] -# check Rstudio working directory +# check Rstudio preferences [ "$(jq '.initial_working_directory' < ~/.config/rstudio/rstudio-prefs.json )" == '"/tmp/testdir"' ] +[ "$(jq '.auto_save_on_blur' < ~/.config/rstudio/rstudio-prefs.json )" == 'true' ] +[ "$(jq '.auto_save_on_idle' < ~/.config/rstudio/rstudio-prefs.json )" == '"commit"' ] + # check preexisting Rstudio preference [ "$(jq '.posix_terminal_shell' < ~/.config/rstudio/rstudio-prefs.json )" == '"bash"' ]