Merge lp://qastaging/~vila/selenium-simple-test/fix-results-directory into lp://qastaging/selenium-simple-test

Proposed by Vincent Ladeuil
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: 411
Merged at revision: 416
Proposed branch: lp://qastaging/~vila/selenium-simple-test/fix-results-directory
Merge into: lp://qastaging/selenium-simple-test
Prerequisite: lp://qastaging/~vila/selenium-simple-test/separate-sst-test
Diff against target: 376 lines (+53/-72)
12 files modified
src/sst/actions.py (+6/-3)
src/sst/cases.py (+1/-5)
src/sst/command.py (+8/-4)
src/sst/loader.py (+3/-1)
src/sst/runtests.py (+6/-9)
src/sst/scripts/remote.py (+4/-3)
src/sst/scripts/run.py (+3/-2)
src/sst/scripts/test.py (+5/-2)
src/sst/tests/test_runtests.py (+4/-3)
src/sst/tests/test_sst_run.py (+2/-2)
src/sst/tests/test_sst_script_test_case.py (+11/-11)
src/sst/tests/test_sst_test_case.py (+0/-27)
To merge this branch: bzr merge lp://qastaging/~vila/selenium-simple-test/fix-results-directory
Reviewer Review Type Date Requested Status
Corey Goldberg (community) Approve
Review via email: mp+166762@code.qastaging.launchpad.net

Commit message

Fix 'results' directory handling.

Description of the change

This fixes the results directory handling and remove some old FIXMEs along the way \o/

There are mainly two use cases here:
- sst-run and friends needs the results directory to store results.xml (when needed)
- page dumps and screen shots needs the directory on failures

While I left the config.results_directory in place even if it's still smells funny, I was able to cover the above use cases more easily than I thought, our test suite is really taking shape and helped a lot.

Surprisingly, implementing the changes were covered by existing tests and they did indeed fail during the refactoring.

I ended up removing an existing test (and its FIXME) which was pointing out the unwanted side-effect.

So, sst-run and friends unconditionally reset the results directory and SSTTestCase will create it only when needed and as such requires a valid path to start with *only* when the directory will be required (i.e. screen shots or page dumps required) and that last part was covered by the existing tests (only slight and obvious fix there).

To post a comment you must log in.
Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

nice.

review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches