diff options
author | Dimitrios Apostolou <jimis@qt.io> | 2022-01-13 13:28:55 +0100 |
---|---|---|
committer | Dimitrios Apostolou <jimis@qt.io> | 2022-02-14 12:56:06 +0100 |
commit | c37d0e84bc4e6bc9840190eaf73f5a39fbfa0b1d (patch) | |
tree | 5ff005559f9d64c67540d897da437d5a438e2130 /coin/instructions/prepare_building_env.yaml | |
parent | d6c4a3edf9adb02b6f96d43768db9f90a6623de7 (diff) |
Clean up QNX platform configs and improve testrunner scripts
QNX requires its own TESTRUNNER script in order to SSH to the QEMU guest
and run the tests. Simplify it a lot and fix the way it passes arguments
so that they retain spaces and quotation.
Also wrap it with the generic TESTRUNNER script for CI, which is
qt-testrunner.py, so that tests can re-run in case of flakiness.
Delete prefix.sh as the environment variables are now properly set in
the Coin platform config files.
Avoid executing extra chmod commands to make scripts executable,
but use the right Coin instruction for that. For reference, we
use 493 for file mode which equals to 755 in octal, as Coin expects
the file mode in decimal.
Change-Id: Ife4d1caef606f48b92ba1da1cfb14ec0dea11ef2
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
Diffstat (limited to 'coin/instructions/prepare_building_env.yaml')
-rw-r--r-- | coin/instructions/prepare_building_env.yaml | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/coin/instructions/prepare_building_env.yaml b/coin/instructions/prepare_building_env.yaml index 6c52381f4e..674eb15fce 100644 --- a/coin/instructions/prepare_building_env.yaml +++ b/coin/instructions/prepare_building_env.yaml @@ -280,14 +280,14 @@ instructions: enable_if: condition: property property: target.osVersion - in_values: [QEMU, QNX_710] + in_values: [QEMU] - type: EnvironmentVariable variableName: TARGET_ENV_PREFIX variableValue: "" disable_if: condition: property property: target.osVersion - in_values: [QEMU, QNX_710] + in_values: [QEMU] # Windows on Arm, cross-compilation with MSVC - type: Group @@ -312,12 +312,6 @@ instructions: property: target.os equals_value: QNX instructions: - - type: WriteFile - fileContents: "#!/bin/bash\nexport TESTARGS={{.Env.TESTARGS}}\nexport TESTRUNNER={{.Env.TESTRUNNER}}\nexport COIN_CTEST_RESULTSDIR={{.Env.COIN_CTEST_RESULTSDIR}}\n$*" - filename: "{{.Env.HOME}}/prefix.sh" - fileMode: 493 - maxTimeInSeconds: 20 - maxTimeBetweenOutput: 20 - type: EnvironmentVariable variableName: QNX_TARGET variableValue: "{{.Env.QNX_710}}/target/qnx7" |