diff mrjunejune/test/production_inference_bundle_test.sh @ 271:13d61401c57d

redirect Copilot cache to service state Set XDG_CACHE_HOME from the configured inference state so the systemd service can extract Copilot outside its protected home directory. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 13:24:05 -0700
parents f7b1188d5fb1
children
line wrap: on
line diff
--- a/mrjunejune/test/production_inference_bundle_test.sh	Fri Aug 07 13:16:47 2026 -0700
+++ b/mrjunejune/test/production_inference_bundle_test.sh	Fri Aug 07 13:24:05 2026 -0700
@@ -102,4 +102,7 @@
 grep -q '"public_visitor"' <<<"$output"
 grep -q '"invited_friend"' <<<"$output"
 grep -q '"june_admin"' <<<"$output"
+grep -q 'XDG_CACHE_HOME=' "$(
+  find -L "$bundle" -type f -name inference_stack.sh -print -quit
+)"
 "$python" "$litellm" --help >/dev/null