This merge proposal obsoletes merge proposal 337271.
The change to DataSourceSmartOS is now quite small. The new tests will only run on VMs running on a SmartOS host and then only if they have write access to /dev/ttyS1. This test code includes Python 2.6 fixes offered by smoser as part of the previous merge proposal.
The fix for bug #1667735 is a better fix for the retries that was originally part of this via
https:/ /code.launchpad .net/~mgerdts/ cloud-init/ +git/cloud- init/+merge/ 337271
This merge proposal obsoletes merge proposal 337271.
The change to DataSourceSmartOS is now quite small. The new tests will only run on VMs running on a SmartOS host and then only if they have write access to /dev/ttyS1. This test code includes Python 2.6 fixes offered by smoser as part of the previous merge proposal.
Proof that the new test runs under tox:
$ tox tests.unittests .test_datasourc e.test_ smartos. TestSerialConcu rrency cloud-init/ setup.py cloud-init/ .tox/dist/ cloud-init- 18.2.zip =2018.1. 18,chardet= =3.0.4, cloud-init= =18.2,configobj ==5.0.6, contextlib2= =0.5.5, coverage= =4.5.1, funcsigs= =1.0.2, functools32= =3.2.3. post2,httpretty ==0.8.14, idna==2. 6,Jinja2= =2.10,jsonpatch ==1.23, jsonpointer= =2.0,jsonschema ==2.6.0, linecache2= =1.0.0, MarkupSafe= =1.0,mock= =2.0.0, nose==1. 3.7,oauthlib= =2.0.7, pbr==4. 0.2,pkg- resources= =0.0.0, pyserial= =3.4,PyYAML= =3.12,requests= =2.18.4, six==1. 11.0,traceback2 ==1.4.0, unittest2= =1.1.0, urllib3= =1.22 '1425861219' .test_datasourc e.test_ smartos. TestSerialConcu rrency
GLOB sdist-make: /home/mgerdts/
py27 inst-nodeps: /home/mgerdts/
py27 installed: certifi=
py27 runtests: PYTHONHASHSEED=
py27 runtests: commands[0] | python -m nose tests.unittests
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 0 tests in 0.000s
OK cloud-init/ .tox/dist/ cloud-init- 18.2.zip =2018.1. 18,chardet= =3.0.4, cloud-init= =18.2,configobj ==5.0.6, contextlib2= =0.5.5, coverage= =4.5.1, httpretty= =0.8.14, idna==2. 6,Jinja2= =2.10,jsonpatch ==1.23, jsonpointer= =2.0,jsonschema ==2.6.0, linecache2= =1.0.0, MarkupSafe= =1.0,mock= =2.0.0, nose==1. 3.7,nose- timer== 0.7.1,oauthlib= =2.0.7, pbr==4. 0.2,pkg- resources= =0.0.0, pyserial= =3.4,PyYAML= =3.12,requests= =2.18.4, six==1. 11.0,termcolor= =1.1.0, traceback2= =1.4.0, unittest2= =1.1.0, urllib3= =1.22 '1425861219' cloud-init/ .tox/py3/ bin/python -m nose --with-timer --timer-top-n 10 tests.unittests .test_datasourc e.test_ smartos. TestSerialConcu rrency .test_datasourc e.test_ smartos. TestSerialConcu rrency. test_all_ keys: 22.6319s ------- ------- ------- ------- ------- ------- ------- ------- -------
py3 inst-nodeps: /home/mgerdts/
py3 installed: certifi=
py3 runtests: PYTHONHASHSEED=
py3 runtests: commands[0] | /home/mgerdts/
.
[success] 100.00% tests.unittests
-------
Ran 1 test in 22.633s
OK cloud-init/ .tox/dist/ cloud-init- 18.2.zip =2018.1. 18,chardet= =3.0.4, cloud-init= =18.2,configobj ==5.0.6, flake8= =3.3.0, hacking= =0.13.0, idna==2. 6,Jinja2= =2.10,jsonpatch ==1.23, jsonpointer= =2.0,jsonschema ==2.6.0, MarkupSafe= =1.0,mccabe= =0.6.1, oauthlib= =2.0.7, pbr==4. 0.2,pep8= =1.5.7, pkg-resources= =0.0.0, pycodestyle= =2.3.1, pyflakes= =1.5.0, PyYAML= =3.12,requests= =2.18.4, six==1. 11.0,urllib3= =1.22 '1425861219' cloud-init/ .tox/flake8/ bin/python -m flake8 tests.unittests .test_datasourc e.test_ smartos. TestSerialConcu rrency cloud-init/ .tox/dist/ cloud-init- 18.2.zip =18.2,configobj ==5.0.6, contextlib2= =0.5.1, httpretty= =0.8.6, Jinja2= =2.8,jsonpatch= =1.16,jsonpoint er==2.0, linecache2= =1.0.0, MarkupSafe= =1.0,mock= =1.3.0, nose==1. 3.7,oauthlib= =1.0.3, pbr==4. 0.2,pkg- resources= =0.0.0, pyserial= =3.0.1, PyYAML= =3.11,requests= =2.9.1, six==1. 10.0,traceback2 ==1.4.0, unittest2= =1.1.0 '1425861219' .test_datasourc e.test_ smartos. TestSerialConcu rrency ------- ------- ------- ------- ------- ------- ------- ------- -------
flake8 inst-nodeps: /home/mgerdts/
flake8 installed: certifi=
flake8 runtests: PYTHONHASHSEED=
flake8 runtests: commands[0] | /home/mgerdts/
xenial inst-nodeps: /home/mgerdts/
xenial installed: cloud-init=
xenial runtests: PYTHONHASHSEED=
xenial runtests: commands[0] | python ./tools/pipremove jsonschema
xenial runtests: commands[1] | python -m nose tests.unittests
.
-------
Ran 1 test in 21.136s
OK cloud-init/ .tox/dist/ cloud-init- 18.2.zip =1.6.3, certifi= =2018.1. 18,chardet= =3.0.4, cloud-init= =18.2,configobj ==5.0.6, contextlib2= =0.5.5, coverage= =4.5.1, httpretty= =0.8.14, idna==2. 6,isort= =4.3.4, Jinja2= =2.10,jsonpatch ==1.23, jsonpointer= =2.0,jsonschema ==2.6.0, lazy-object- proxy== 1.3.1,linecache 2==1.0. 0,MarkupSafe= =1.0,mccabe= =0.6.1, mock==2. 0.0,nose= =1.3.7, oauthlib= =2.0.7, pbr==4. 0.2,pkg- resources= =0.0.0, pylint= =1.8.1, pyserial= =3.4,PyYAML= =3.12,requests= =2.18.4, six==1. 11.0,traceback2 ==1.4.0, unittest2= =1.1.0, urllib3= =1.22,wrapt= =1.10.11 '1425861219' cloud-init/ .tox/pylint/ bin/python -m pylint tests.unittests .test_datasourc e.test_ smartos. TestSerialConcu rrency cloud-init/ .pylintrc _______ _______ _______ _______ ____ summary _______ _______ _______ _______ _______ ____
pylint inst-nodeps: /home/mgerdts/
pylint installed: astroid=
pylint runtests: PYTHONHASHSEED=
pylint runtests: commands[0] | /home/mgerdts/
Using config file /home/mgerdts/
_______
py27: commands succeeded
py3: commands succeeded
flake8: commands succeeded
xenial: commands succeeded
pylint: commands succeeded
congratulations :)