summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas@radix.lt>2021-05-30 18:23:59 +0300
committerPovilas Kanapickas <povilas@radix.lt>2021-05-30 18:23:59 +0300
commit02e4f2ffac4b7b6101ab370569e5180d74c3c4c0 (patch)
treedb671226e0326d38c8f4c4e09027ddb90e2aa686
parent8d6cbb94ce0f1cb9e6398a672993b72d97d7364c (diff)
Hide custom configuration that interferes with unshare script
-rw-r--r--README.md5
-rwxr-xr-xstart-unshare-impl.sh3
2 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index f3e84b0..7114071 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,11 @@ This creates a bare-bones environment that shares the filesystem with the rest o
but is otherwise isolated from it. This allows running additional X servers without affecting the
primary X server running on the machine.
+If running tests via `./start_unshare.sh` results in most tests failing with
+`parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)` then make sure
+that the test box does not have X11 configuration that e.g. forces loading of additional
+driver modules.
+
If the tests are run without any isolation then it is advisable to shut down any X
server on the test box.
diff --git a/start-unshare-impl.sh b/start-unshare-impl.sh
index bb1bf8b..06c7d80 100755
--- a/start-unshare-impl.sh
+++ b/start-unshare-impl.sh
@@ -16,4 +16,7 @@ mkdir -p _xorg_integration_test_empty
mount --bind _xorg_integration_test_empty /dev
mount --bind _xorg_integration_test_empty /sys
+# Hide any custom configuration on the test box
+mount --bind _xorg_integration_test_empty /usr/share/X11/xorg.conf.d
+
/bin/bash