re-enable test_cli in package builds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Dan Watkins |
Bug Description
revision 1106 made tests in test_cli.py get skipped if there was no bin/cloud-init.
that was because package builds would fail, like:
=======
ERROR: test_no_
-------
Traceback (most recent call last):
File "/«PKGBUILDDIR»
self.
File "/«PKGBUILDDIR»
'cli', open('bin/
FileNotFoundError: [Errno 2] No such file or directory: 'bin/cloud-init'
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Dan Watkins (daniel-thewatkins) |
Scott, the best way of handling this is probably to make bin/cloud-init a tiny wrapper around something that's part of the library (i.e. just move the vast majority of the contents to cloudinit.cli or cloudinit.main). Does that sound like a sensible approach?