summaryrefslogtreecommitdiff
path: root/scripts/lib/perl5/QtQA/Proc/Reliable.pm
Commit message (Collapse)AuthorAgeFilesLines
* Use SPDX license identifiersLucie Gérard2022-06-081-27/+2
| | | | | | | | | | | Replace the current license header in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: master Task-number: QTBUG-67283 Change-Id: I6ae743e055bbf1cf514abe604157068923fb03c6 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Fix licensingJani Heikkinen2017-06-011-17/+12
| | | | | | | | | | - Remove unnecessary license files and license header templates - Tools and test are licensed under GPL-EXCEPT nowdays, update correct license header there - Update test data to match current license headers Change-Id: Ia25c9e0989be326e0edeb0325af399edc26f0054 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Update copyright headersAntti Kokko2015-02-131-22/+14
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I5999ee256134fe82ab13f6f06fcd1d0aa150b688 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* Fix "missing AutoLoader" complain in OSX 10.9Simo Fält2014-05-091-0/+1
| | | | | | | | | Requiring AutoLoader module on testrunner fixes the "Can't locate package AutoLoader for @Proc::Reliable::ISA" warning, seen in OSX 10.9 nodes. Change-Id: Ie00318d7b2fe1df7d445b661f96cccc00b8fed38 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-141-1/+1
| | | | | | Change-Id: I02eaa709ff91d158a3e34f4e719254f2adce873e Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Janne Anttila <janne.anttila@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-24/+24
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I0122cd74f6246a5f20eee2b33ceb328df77a32db Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Implemented proper stdout_cb/stderr_cb callbacks on Windows.Rohan McGovern2012-02-291-6/+2
| | | | | | | | | | | | | | | | | | | | | | | The initial implementation of QtQA::Proc::Reliable::Win32 used a trivial and just-barely-good-enough implementation for the stdout/stderr callbacks. That is no longer good enough; we need proper stdout/stderr capturing on Windows to implement output buffering for parallel tests, and to implement the testrunner --tee-logs feature. Therefore, implement stdout_cb/stderr_cb with the same semantics as on Linux and Mac. The main caveat of the implementation is the use of interpreter threads; there is one thread used to run the process, one thread to read STDOUT, and one thread to read STDERR. The usage of threads should not matter in the majority of cases, but some code (e.g. Test::More) may be affected by the presence of multiple threads. Change-Id: Ic3e80afd9b61c79a4c5557c40a7323d1339ba9ef Reviewed-by: Jyri Tahtela <jyri.tahtela@nokia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-301-1/+1
| | | | | | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Note that the "All rights reserved" line has not been removed from the test data for the license checker's selftest, but the extra blank line has been added to those files. Change-Id: Icf3080dcdb51c2cbf0e825f2f374cb9666eea44c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-231-1/+1
| | | | | | | | | | | | Replace Nokia contact email address with Qt Project website. Note that the test data for the license checker's selftest are intentionally excluded from this commit, except for the last line of the LGPL-ONLY license text. The test data will be updated when/if the license checker stops allowing the old contact address. Change-Id: I82ef842d2536a4a9bea99832099f53247c8d4b4b Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* QtQA::Proc::Reliable: don't retry successful commandsRohan McGovern2012-01-101-1/+1
| | | | | | | | | | If the output of commands matched any "probably junk" patterns, the command would be retried even if it exited with a 0 exit code. Change-Id: Ice728cb135336bba31853924a45f253802bf7a3d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jyri Tahtela <jyri.tahtela@nokia.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-051-1/+1
| | | | | | Change-Id: I37b39e61a52db58885e99a4c8f2ba654de09f3c9 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add missing license headersJason McDonald2011-08-121-0/+41
| | | | | | | | Change-Id: Ie46c826863e546ee2f60796a037cd5c61f9a5192 Reviewed-on: http://codereview.qt.nokia.com/2606 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Automatically recover from some transient errors in test scriptsRohan McGovern2011-07-271-0/+421
When running complex test procedures, it is unfortunately relatively common that certain types of errors may arise which are unrelated to the code under test. One example of this is a test procedure which attempts to perform a git clone from a remote host. If implemented simply, this test procedure will fail whenever the remote host is undergoing maintenance or a temporary network outage has occurred. This is usually undesirable. This commit adds some infrastructure for test scripts to transparently recover from these types of errors without having to explicitly code for them. Currently handled are various errors from git, ssh and scp relating to network problems. Task: QTQAINFRA-223 Change-Id: I8fb0a505cdbb8ad00f6bd036854b30e24201419b Reviewed-on: http://codereview.qt.nokia.com/644 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>