scouting: Add some TODOs on sandboxing //scouting:scouting_test
I currently can't run the test on my headless Debian 12 machine. Need
to figure out what's going on there.
Change-Id: Iaf25237f13c8824f29bc9c4fce66eb27a6a7f863
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
diff --git a/scouting/scouting_test_runner.js b/scouting/scouting_test_runner.js
index 3106ee7..c2ef027 100644
--- a/scouting/scouting_test_runner.js
+++ b/scouting/scouting_test_runner.js
@@ -4,9 +4,13 @@
const cypress = require('cypress');
// Set up the xvfb binary.
-process.env[
- 'PATH'
-] = `${process.env.RUNFILES_DIR}/xvfb_amd64/wrapped_bin:${process.env.PATH}`;
+// TODO(philipp): Figure out how to point Xvfb at the sandboxed usr/bin
+// directory. Currently impossible as it's hardcoded to use /usr/bin.
+process.env['PATH'] = [
+ `${process.env.RUNFILES_DIR}/xvfb_amd64/wrapped_bin`,
+ `${process.env.RUNFILES_DIR}/xvfb_amd64/usr/bin`,
+ process.env.PATH,
+].join(':');
// Start the web server, database, and fake TBA server.
// We use file descriptor 3 ('pipe') for the test server to let us know when