pysys-commits Mailing List for PySys System Test Framework
Brought to you by:
ben-spiller,
moraygrieve
You can subscribe to this list here.
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
(14) |
Oct
(63) |
Nov
(15) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(12) |
Jun
(13) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
(13) |
2015 |
Jan
|
Feb
(17) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(5) |
Oct
|
Nov
|
Dec
(35) |
2016 |
Jan
(34) |
Feb
(2) |
Mar
|
Apr
|
May
(40) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
(1) |
Feb
|
Mar
(12) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
(22) |
Apr
(32) |
May
(86) |
Jun
(41) |
Jul
(16) |
Aug
(18) |
Sep
(21) |
Oct
(13) |
Nov
(3) |
Dec
|
2019 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ben...@us...> - 2019-02-27 20:25:40
|
Revision: 1060 http://sourceforge.net/p/pysys/code/1060 Author: ben-spiller Date: 2019-02-27 20:25:38 +0000 (Wed, 27 Feb 2019) Log Message: ----------- create final tag (retrospectively) for 1.3.0 release (official release date 13 July 2018; includes setup.py fix for README) Added Paths: ----------- tags/PySys_1_3_0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2019-02-27 20:24:43
|
Revision: 1059 http://sourceforge.net/p/pysys/code/1059 Author: ben-spiller Date: 2019-02-27 20:24:41 +0000 (Wed, 27 Feb 2019) Log Message: ----------- sigh, have to delete tag again as needed a final (minor) setup.py change to make packaging work on windows Removed Paths: ------------- tags/PySys_1_3_0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2019-02-27 18:07:16
|
Revision: 1058 http://sourceforge.net/p/pysys/code/1058 Author: ben-spiller Date: 2019-02-27 18:07:13 +0000 (Wed, 27 Feb 2019) Log Message: ----------- add short-term hack to allow README.rst to be located during bdist_wininst creation on windows and also sdist creation on linux, since it appears due to our non-standard directory layout the paths are different in both cases Modified Paths: -------------- trunk/pysys-dist/setup.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2019-02-27 17:08:04
|
Revision: 1057 http://sourceforge.net/p/pysys/code/1057 Author: ben-spiller Date: 2019-02-27 17:08:01 +0000 (Wed, 27 Feb 2019) Log Message: ----------- create final tag (retrospectively) for 1.3.0 release (official release date 13 July 2018) Added Paths: ----------- tags/PySys_1_3_0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2019-02-27 17:06:56
|
Revision: 1056 http://sourceforge.net/p/pysys/code/1056 Author: ben-spiller Date: 2019-02-27 17:06:54 +0000 (Wed, 27 Feb 2019) Log Message: ----------- delete tag created wrongly Removed Paths: ------------- tags/PySys_1_3_0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-11-08 18:08:05
|
Revision: 1055 http://sourceforge.net/p/pysys/code/1055 Author: ben-spiller Date: 2018-11-08 18:08:01 +0000 (Thu, 08 Nov 2018) Log Message: ----------- I noticed calling startProcessMonitor() was taking more than 2 minutes, and found the current implementation enumerates every single thread of every process, in a weird attempt to calculate "% Processor Time"; this is unnecessary as there's a Process performance counter for that, and also incorrect as it ignroes threads that the process may start after the process monitor was added; also changed from win32pdh.PDH_FMT_LONG to win32pdh.PDH_FMT_LARGE since otherwise big integers overflow into negative ones (virtual mem usage was sjowing up negatvie on my machine) Modified Paths: -------------- branches/post-1.3.0/pysys/process/plat-win32/monitor.py branches/post-1.3.0/pysys-dist/pysys-release.txt branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_080/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-11-08 17:09:19
|
Revision: 1054 http://sourceforge.net/p/pysys/code/1054 Author: ben-spiller Date: 2018-11-08 17:09:17 +0000 (Thu, 08 Nov 2018) Log Message: ----------- fix a small problem introduced a couple of comits ago where writes of buffered output to stdout ended up going with the logger results in an extra "time INFO " prefix (and as a side-effect caused PYSYS_DISABLE_PRINT_REDIRECTOR to not work); this fix makes the buffered ouptut go through the exact same mechanism as the single threaded output, so safer and simpler Modified Paths: -------------- branches/post-1.3.0/pysys/baserunner.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-11-08 16:20:13
|
Revision: 1053 http://sourceforge.net/p/pysys/code/1053 Author: ben-spiller Date: 2018-11-08 16:20:07 +0000 (Thu, 08 Nov 2018) Log Message: ----------- Fixed a really serious bug in which random log lines might not be written to run.log and/or stdout when running tests multi-threaded (as a result of an underlying python bug https://bugs.python.org/issue35185 - has been in pysys for ages/forever) - fixed with a workaround where we avoid calling add/removehandler for each test and use a single handler to multiplex with threadlocals; not only does this solve the problem but it ought also to be faster since it avoids grabbing process-global logger locks during each testcase, and also gives us a potential way if we want it to make child threads started by tests inherit the logging behaviour of the parent test rather than just disspearing into the void; ThreadedStreamHandler is now used only for writing to stdout in the main thread; made some minor improvements to error reporting (on stderr) so that we have a way to debug if exceptions are unexectedly thrown from some improtant code blocks Modified Paths: -------------- branches/post-1.3.0/pysys/__init__.py branches/post-1.3.0/pysys/baserunner.py branches/post-1.3.0/pysys-dist/pysys-release.txt This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-19 15:54:34
|
Revision: 1052 http://sourceforge.net/p/pysys/code/1052 Author: ben-spiller Date: 2018-10-19 15:54:25 +0000 (Fri, 19 Oct 2018) Log Message: ----------- remove unused import ThreadedFileHandler Modified Paths: -------------- branches/post-1.3.0/pysys/baserunner.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-19 15:54:10
|
Revision: 1051 http://sourceforge.net/p/pysys/code/1051 Author: ben-spiller Date: 2018-10-19 15:54:01 +0000 (Fri, 19 Oct 2018) Log Message: ----------- fix PySys_internal_091 print() test for linux utf-8 - interpretation of {U+00A3} cant be easily verified in python 2 since its locale dependent, so only do that on python 3 Modified Paths: -------------- branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-19 15:48:41
|
Revision: 1050 http://sourceforge.net/p/pysys/code/1050 Author: ben-spiller Date: 2018-10-19 15:48:35 +0000 (Fri, 19 Oct 2018) Log Message: ----------- minor improvement to internal testing - changing global os.environ is not safe (sometimes results in concurrency bugs when running in parallel; also means behaviour of later tests is affected by env changes made by earlier tests), so run that bit inside a nested testcase; from 002 simply remove as not used Modified Paths: -------------- branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_001/run.py branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_002/run.py Added Paths: ----------- branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_001/Input/NestedTest/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_001/Input/NestedTest/Input/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_001/Input/NestedTest/pysystest.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_001/Input/NestedTest/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-19 15:43:01
|
Revision: 1049 http://sourceforge.net/p/pysys/code/1049 Author: ben-spiller Date: 2018-10-19 15:42:58 +0000 (Fri, 19 Oct 2018) Log Message: ----------- rework colorama coloring support to avoid possibilty of infinite loop due to print() stdout redirection (shown by test 001); this is pretty robust now Modified Paths: -------------- branches/post-1.3.0/pysys/__init__.py branches/post-1.3.0/pysys/utils/logutils.py branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-19 14:47:27
|
Revision: 1048 http://sourceforge.net/p/pysys/code/1048 Author: ben-spiller Date: 2018-10-19 14:47:23 +0000 (Fri, 19 Oct 2018) Log Message: ----------- inexperienced pysys users often use print() instead of self.log which 'appears' to work fine, but actually results in none of the information being stored in the run.log, making test failures extremely difficult to debug; now pysys will automatically redirect stdout print statements to the logger so they show up in run.log; I added an undocumented env var to disable this behaviour in case of the unlikely event that this causes problems for anyone (can remove this after it's had one or two releases to bed down) Modified Paths: -------------- branches/post-1.3.0/pysys/baserunner.py branches/post-1.3.0/pysys-dist/pysys-release.txt Added Paths: ----------- branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/Input/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/Input/NestedTest/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/Input/NestedTest/Input/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/Input/NestedTest/pysystest.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/Input/NestedTest/run.py branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/Input/pysysproject.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/Reference/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/pysystest.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_091/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-19 13:43:26
|
Revision: 1047 http://sourceforge.net/p/pysys/code/1047 Author: ben-spiller Date: 2018-10-19 13:43:19 +0000 (Fri, 19 Oct 2018) Log Message: ----------- Added pysys.writers.replaceIllegalXMLCharacters utility function, and use it to avoid XMLResultsWriter and JUnitXMLResultsWriter from generating invalid XML if run.log or outcome reason contained characters not permitted by XML (tested by 090); Also ASCII control characters (e.g. colouring instructions from other tools) are now stripped out of all outcome reason strings (including in run.log and non-XML based writers) since such characters are not useful and make summary test results harder to read. Modified Paths: -------------- branches/post-1.3.0/pysys/process/user.py branches/post-1.3.0/pysys/writer/__init__.py branches/post-1.3.0/pysys-dist/pysys-release.txt Added Paths: ----------- branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/Input/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/Input/NestedFail/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/Input/NestedFail/Input/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/Input/NestedFail/pysystest.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/Input/NestedFail/run.py branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/Input/pysysproject.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/Reference/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/Reference/pysys.out branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/pysystest.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_090/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-18 14:14:13
|
Revision: 1046 http://sourceforge.net/p/pysys/code/1046 Author: ben-spiller Date: 2018-10-18 14:14:10 +0000 (Thu, 18 Oct 2018) Log Message: ----------- add support for customizing the encoding used to write run.log files, and change the pysysexamples/pysysproject.xml file to use utf-8 for run.log files (existing pysys projects are not affected), which is a better default since it's the same across all test machines, and also allows pretty much any character to be encoded unlike the Windows default encoding which loses a lot of that information Modified Paths: -------------- branches/post-1.3.0/pysys/baserunner.py branches/post-1.3.0/pysys-dist/pysys-release.txt branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/Input/NestedTest/run.py branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/Input/pysysproject.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/run.py branches/post-1.3.0/pysys-examples/pysysproject.xml This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-18 13:54:33
|
Revision: 1045 http://sourceforge.net/p/pysys/code/1045 Author: ben-spiller Date: 2018-10-18 13:54:28 +0000 (Thu, 18 Oct 2018) Log Message: ----------- add fileutils.deletedir and deprecate baserunner/writer.purgeDirectory since it's not great to have code copied+pasted in several places, better/more efficient to use standard shutil.rmtree than to roll our own custom implementation, and it should be up to the caller whether they want to ignore errors or not; change baserunner to use deleteDir and deliberately _not_ suppress exceptions if output dir cannot be cleaned before test starts, since the entire test is completely invalid if some files are left from a previous run and it's improtant for the user to know this has happened (otherwise either they'll get a really confusing error but not know the real root cause - since the deletion warnings happen before run.log is set up - or the test will pass when it ought to have failed, potentialyl masking bugs) Modified Paths: -------------- branches/post-1.3.0/pysys/baserunner.py branches/post-1.3.0/pysys/utils/fileutils.py branches/post-1.3.0/pysys/writer/__init__.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-18 13:12:44
|
Revision: 1044 http://sourceforge.net/p/pysys/code/1044 Author: ben-spiller Date: 2018-10-18 13:12:38 +0000 (Thu, 18 Oct 2018) Log Message: ----------- add support for statically configuring default file encodings for common file types e.g. <default-file-encoding pattern="*.xml" encoding="utf-8"/>, and do this for common utf-8 file types in the default project config; also make BaseTest.getDefaultFileEncoding() delegate to runner by default, so you can just override the runner one and have it affect both Modified Paths: -------------- branches/post-1.3.0/pysys/basetest.py branches/post-1.3.0/pysys/process/user.py branches/post-1.3.0/pysys/xml/project.py branches/post-1.3.0/pysys-dist/pysys-release.txt branches/post-1.3.0/pysys-examples/pysysproject.xml Added Paths: ----------- branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/Input/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/Input/NestedTest/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/Input/NestedTest/pysystest.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/Input/NestedTest/run.py branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/Input/pysysproject.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/Reference/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/Reference/pysys.out branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/pysystest.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_089/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-18 00:24:40
|
Revision: 1043 http://sourceforge.net/p/pysys/code/1043 Author: ben-spiller Date: 2018-10-18 00:24:37 +0000 (Thu, 18 Oct 2018) Log Message: ----------- add handy (+%d other failures) suffix to outcome reason to give a summary of how many other problems there were in addition to the reported outcome reason Modified Paths: -------------- branches/post-1.3.0/pysys/process/user.py branches/post-1.3.0/pysys-dist/pysys-release.txt This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-18 00:22:44
|
Revision: 1042 http://sourceforge.net/p/pysys/code/1042 Author: ben-spiller Date: 2018-10-18 00:22:36 +0000 (Thu, 18 Oct 2018) Log Message: ----------- Implement some significant (and btw, jolly tricky!) improvements to robustness of I18N character support, especially around logging, as some PySys users were experiencing loss of essential logging lines due to encoding issues. Specific changes: - implement fully safe and reliable logging of unicode strings (with ? replacements for any unsupported characters) that works regardless of what encoding is in use for stdout and run.log; - fixed exception when logging unicode characters in Python 2 if a formatter was not configured in pysysproject.xml, by ensuring it is always stored as a unicode character string not a byte string (which used to happen in Python 2 if it was not mentioned in hte project config); ensures consistent (+sane +testable!) behaviour whether you've customized the format string or not; also added an assertion to check this assumption is never violated - fixed logFileContents to more robustly handle files containing I18N/non-ASCII characters - add runLogOutput parameter to processResult() method of BaseResultsWriter API so that writers such as the JUnitXMLResultsWriter can include the test output with no loss of unicode character information (and without relying on error-prone manual reading of run.log); - introduced (non-public) _UnicodeSafeStreamWrapper to perform the complex gymnastics required to ensure all of the possible combinations of logging unicode characters and binary bytes in python 2 and 3 result in successful logging (with replacement characters if needed), regardless of the stdout encoding, getpreferredencoding and whether stdout is redirected or not; - add (non-public) _updateUnderlyingStream() method to ThreadedStreamHandler and streamFactory pattern to keep the slightly complex logic needed to handle reinitialization after a coloring formatter such as colorama rewrites sys.stdout contained to the ThreadedStreamHandler that originally set it up; added PySys_internal_086 to test this (which ended up having to be pretty complicated as there are a _lot_ of very tricky edge cases); - change runner to use ThreadedStreamHandler not ThreadedFileHandler since the latter isn't really doing anything useful and we need more direct control over the stream to ensure we degrade gracefully if there are unprintable characters (ThreadedFileHandler is now redundant) - add @deprecated and @undocumented for ThreadedStreamHandler/ThreadedFileHandler since they're not useful for PySys users (I'm certain no-one will be using them) and we don't really want to be tied to keeping them there and with same API - doing this will allow us to remove or change them in some future release but I'm not doing that now, to be very conservative (even though ThreadedFileHandler is actually no longer needed) - made self.testFileHandlerStdoutBuffer handling more robust - StringIO can be used with characters or bytes but gives exceptions if you try to mix them, so to avoid nasty bugs where logging output disappears we need to consistently do the same thing (unicode characters) - release note updates Modified Paths: -------------- branches/post-1.3.0/pysys/__init__.py branches/post-1.3.0/pysys/baserunner.py branches/post-1.3.0/pysys/constants.py branches/post-1.3.0/pysys/process/user.py branches/post-1.3.0/pysys/utils/logutils.py branches/post-1.3.0/pysys/utils/pycompat.py branches/post-1.3.0/pysys/writer/__init__.py branches/post-1.3.0/pysys-dist/pysys-release.txt branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_068/run.py branches/post-1.3.0/pysys-examples/internal/utilities/resources/runpysys.py Added Paths: ----------- branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Input/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Input/NestedFail/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Input/NestedFail/Input/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Input/NestedFail/pysystest.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Input/NestedFail/run.py branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Input/mypkg/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Input/mypkg/__init__.py branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Input/mypkg/customfmt.py branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Input/pysysproject.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Reference/ branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/Reference/pysys.out branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/pysystest.xml branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_086/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-17 23:55:49
|
Revision: 1041 http://sourceforge.net/p/pysys/code/1041 Author: ben-spiller Date: 2018-10-17 23:55:46 +0000 (Wed, 17 Oct 2018) Log Message: ----------- fix PySys_internal_059 after stricter checking to avoid expr=None in r1039 (think the test probably never did what it was intended to until now) Modified Paths: -------------- branches/post-1.3.0/pysys-examples/internal/testcases/PySys_internal_059/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-10-15 14:50:45
|
Revision: 1040 http://sourceforge.net/p/pysys/code/1040 Author: ben-spiller Date: 2018-10-15 14:50:42 +0000 (Mon, 15 Oct 2018) Log Message: ----------- add except block so that an exception in runner.cleanup/cycleCOmplete wouldn't prevent handleKbrdInt from successfully terminating the process Modified Paths: -------------- branches/post-1.3.0/pysys/baserunner.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-09-20 15:53:15
|
Revision: 1039 http://sourceforge.net/p/pysys/code/1039 Author: ben-spiller Date: 2018-09-20 15:53:11 +0000 (Thu, 20 Sep 2018) Log Message: ----------- add assertion to provide a more helpful message if you forget to specify expr= when calling waitForSignal; people quite often seem to make that mistake (e.g. passing the expr as the second positional argument) and waitForSignal with expr='' is non-sensical so this assertion can't do any harm and should help mpeople avoid mnaking mistakes; also added example of a best-practice typical waitForSignal command to the pydoc Modified Paths: -------------- branches/post-1.3.0/pysys/process/user.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-09-18 21:03:06
|
Revision: 1038 http://sourceforge.net/p/pysys/code/1038 Author: ben-spiller Date: 2018-09-18 21:03:03 +0000 (Tue, 18 Sep 2018) Log Message: ----------- move baserunner cleanup() invocation into a finally block so it always executes even fi something else went wrong first, since failing to cleanup could be dangerous Modified Paths: -------------- branches/post-1.3.0/pysys/baserunner.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-09-18 21:01:57
|
Revision: 1037 http://sourceforge.net/p/pysys/code/1037 Author: ben-spiller Date: 2018-09-18 21:01:53 +0000 (Tue, 18 Sep 2018) Log Message: ----------- improve error handling in runner - while debugging some failure modes recently I found several places where serious errors (e.g. failure to report a test outcome by a writer) might easily go unnoticed by the user, or be reported without information about the test id where the problem was caused; now exceptions from writers will always lead to a non-success exit code and a message at the end of the test run so usuers should always be aware if something went wrong that could lead to missing results; for the same reason, made writer.setup errors immediately cause termination since continuing to run tests without recording the outcomes could be misleading and perhaps dangerous Modified Paths: -------------- branches/post-1.3.0/pysys/baserunner.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ben...@us...> - 2018-09-18 16:38:56
|
Revision: 1036 http://sourceforge.net/p/pysys/code/1036 Author: ben-spiller Date: 2018-09-18 16:38:50 +0000 (Tue, 18 Sep 2018) Log Message: ----------- print traceback if the console runtest gets an exception (e.g. from runner.start) since this should not happen unless something is seriously broken, and in that case you really need something to go on otherwise it's impossible to debug; to avoid printing tracebacks for descriptor problems (i.e. specified test id doesn't exist) use sys.exit(reasonstring) which logs the string to stderr then terminates with an exit code of 1 (without triggering the "Exception" catch block) which is exactly what we want Modified Paths: -------------- branches/post-1.3.0/pysys/launcher/__init__.py branches/post-1.3.0/pysys/launcher/console.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |