diff options
author | Povilas Kanapickas <povilas@radix.lt> | 2021-05-30 18:23:59 +0300 |
---|---|---|
committer | Povilas Kanapickas <povilas@radix.lt> | 2021-05-30 18:23:59 +0300 |
commit | 02e4f2ffac4b7b6101ab370569e5180d74c3c4c0 (patch) | |
tree | db671226e0326d38c8f4c4e09027ddb90e2aa686 | |
parent | 8d6cbb94ce0f1cb9e6398a672993b72d97d7364c (diff) |
Hide custom configuration that interferes with unshare script
-rw-r--r-- | README.md | 5 | ||||
-rwxr-xr-x | start-unshare-impl.sh | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -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 |