Ensure HOME is set in syncthingtray tests

Workaround for https://github.com/syncthing/syncthing/issues/8785
This commit is contained in:
Martchus 2023-02-13 15:58:59 +01:00
parent ba53dca910
commit ecf5bbef00
4 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,7 @@ build() {
check() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
export HOME=${HOME:-/} # https://github.com/syncthing/syncthing/issues/8785
QT_QPA_PLATFORM=offscreen SYNCTHING_PORT=$(ephemeral_port) SYNCTHING_TEST_TIMEOUT_FACTOR=3 ninja check
}

View File

@ -90,6 +90,7 @@ build() {
check() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
export HOME=${HOME:-/} # https://github.com/syncthing/syncthing/issues/8785
QT_QPA_PLATFORM=offscreen SYNCTHING_PORT=$(ephemeral_port) SYNCTHING_TEST_TIMEOUT_FACTOR=3 ninja check
}

View File

@ -87,6 +87,7 @@ build() {
check() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
export HOME=${HOME:-/} # https://github.com/syncthing/syncthing/issues/8785
QT_QPA_PLATFORM=offscreen SYNCTHING_PORT=$(ephemeral_port) SYNCTHING_TEST_TIMEOUT_FACTOR=3 ninja check
}

View File

@ -124,6 +124,7 @@ check() {
source static-compat-environment
export PATH=$PWD:$PATH
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
export HOME=${HOME:-/} # https://github.com/syncthing/syncthing/issues/8785
QT_QPA_PLATFORM=offscreen SYNCTHING_PORT=$(ephemeral_port) SYNCTHING_TEST_TIMEOUT_FACTOR=3 ninja check
}