Merge lp://qastaging/~doanac/utah/bug1179531 into lp://qastaging/~utah/utah/0.12
Proposed by
Andy Doan
Status: | Merged |
---|---|
Merged at revision: | 898 |
Proposed branch: | lp://qastaging/~doanac/utah/bug1179531 |
Merge into: | lp://qastaging/~utah/utah/0.12 |
Diff against target: |
58 lines (+18/-2) 3 files modified
debian/changelog (+6/-0) tests/test_run.py (+11/-0) utah/run.py (+1/-2) |
To merge this branch: | bzr merge lp://qastaging/~doanac/utah/bug1179531 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andy Doan (community) | Approve | ||
Review via email:
|
Description of the change
another regression for 0.12 to fix reboot support
To post a comment you must log in.
On Wed, May 15, 2013 at 03:41:25AM -0000, Andy Doan wrote: /bugs.launchpad .net/utah/ +bug/1179531 /code.launchpad .net/~doanac/ utah/bug1179531 /+merge/ 163828 /code.launchpad .net/~doanac/ utah/bug1179531 /+merge/ 163828
> Andy Doan has proposed merging lp:~doanac/utah/bug1179531 into lp:~utah/utah/0.12.
>
> Requested reviews:
> UTAH Dev (utah)
> Related bugs:
> Bug #1179531 in UTAH: "utah fails after reboot, but test continues to run on SUT"
> https:/
>
> For more details, see:
> https:/
>
> another regression for 0.12 to fix reboot support
> --
> https:/
> Your team UTAH Dev is requested to review the proposed merge of lp:~doanac/utah/bug1179531 into lp:~utah/utah/0.12.
> === modified file 'debian/changelog' doanac- laptop> Tue, 14 May 2013 22:36:23 -0500 runlist_ argument, machine, args, logs) (copyfile. called) utah_done( self): run.side_ effect = UTAHException( 'blah') done(machine, 1) 'is_utah_ done should raise UTAHException') ls(str( e), 'blah') (e.retry)
> --- debian/changelog 2013-05-13 11:40:41 +0000
> +++ debian/changelog 2013-05-15 03:40:30 +0000
> @@ -1,3 +1,9 @@
> +utah (0.12.4ubuntu1) released; urgency=low
> +
> + * Fix reboot support in runlists (LP: #1179531)
> +
> + -- Andy Doan <doanac@
> +
> utah (0.12.3ubuntu2) raring; urgency=low
>
> * Check sftp_client is initialized before closing it (LP: #1178686)
>
> === modified file 'tests/test_run.py'
> --- tests/test_run.py 2013-05-01 18:56:23 +0000
> +++ tests/test_run.py 2013-05-15 03:40:30 +0000
> @@ -36,6 +36,7 @@
> _copy_preseed,
> _get_runlist,
> _write,
> + is_utah_done,
> master_
> )
>
> @@ -154,3 +155,13 @@
> _copy_preseed(
> self.assertEqual(1, len(logs))
> self.assertTrue
> +
> + def test_is_
> + machine = Mock()
> + machine.
> + try:
> + is_utah_
> + raise RuntimeError(
> + except UTAHException as e:
> + self.assertEqua
> + self.assertTrue
I'm not sure if it'll help here, but you can use:
self. assertRaises( UTAHException, is_utah_done, machine, 1)
I don't think you can do the exception inspection you are doing though.
> str(err) , retry=True)
> === modified file 'utah/run.py'
> --- utah/run.py 2013-05-02 21:30:31 +0000
> +++ utah/run.py 2013-05-15 03:40:30 +0000
> @@ -411,5 +411,5 @@
> else:
> logging.info('UTAH client is finished')
> return exitstatus
> - except socket.error as err:
> + except Exception as err:
> raise UTAHException(
>