How stupid of me. setting TESTOOB_DEVEL_TEST indeed solved it.
I did find one remaining failing testcase:
FAIL: testTimeOut
(large.test_commandline.CommandLineTestCase.testTimeOut)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/large/test_commandline.py", line 387, in testTimeOut
testoob.testing.command_line(args=args,
expected_error_regex=regex, expected_rc=1)
File "/home/rwestein/testoob/testoob/src/testoob/testing.py", line
152, in command_line
assert_matches(expected_error_regex, error,
filter=_normalize_newlines)
File "/home/rwestein/testoob/testoob/src/testoob/testing.py", line
67, in assert_matches
raise TestoobAssertionError(msg, description="assert_matches
failed")
TestoobAssertionError: [assert_matches failed]
'FF
======================================================================
FAIL: testBuisy (suites.CaseSlow.testBuisy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rwestein/testoob/testoob/tests/suites.py", line 71, in
testBuisy
time.sleep(1)
File "/home/rwestein/testoob/testoob/src/testoob/main.py", line 175,
in alarm
raise AssertionError("Timeout")
AssertionError: Timeout
======================================================================
FAIL: testSleep (suites.CaseSlow.testSleep)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rwestein/testoob/testoob/tests/suites.py", line 65, in
testSleep
time.sleep(2)
File "/home/rwestein/testoob/testoob/src/testoob/main.py", line 175,
in alarm
raise AssertionError("Timeout")
AssertionError: Timeout
Failed 2 tests
- testBuisy (suites.CaseSlow)
- testSleep (suites.CaseSlow)
----------------------------------------------------------------------
Ran 2 tests in 1.995s
FAILED (failures=2)
' doesn't match regular expression 'FAIL: testBuisy \(suites\.CaseSlow
\.testBuisy\)
.*
AssertionError: Timeout.*
FAIL: testSleep \(suites\.CaseSlow\.testSleep\)
.*
AssertionError: Timeout.*Ran 2 tests in 2\.\d+s'
This testcase is always skipped on windows. I could easily solve it
by adding ".*" at the beginning of _timeout_regex_base (line 375 in
tests/large/test_commandline.py)
Did we get this testcase to pass at some point? If the fix I'm
describing
is indeed necessary, I'll add it in a branch.
Ronnie
On 27 jan, 14:45, Misha Seltzer <
misha.selt...@gmail.com> wrote:
> There is a shell script in src/testoob/testoob
> Generally, if you run "python ./setup.py install" it should install this
> script into some bin directory.
>
> If you want to run the test in development mode (means it'll look for the
> script in src/testoob/testoob instead of looking for it in the path), you
> can define an environment variable "TESTOOB_DEVEL_TEST" (with any value) and
> run tests again.
>