← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1455651] [NEW] re-enable test_cli in package builds

 

Public bug reported:

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_arguments_shows_error_message (unittests.test_cli.TestCLI)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_3.4/build/tests/unittests/test_cli.py", line 46, in test_no_arguments_shows_error_message
    self._call_main()
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_3.4/build/tests/unittests/test_cli.py", line 28, in _call_main
    'cli', open('bin/cloud-init'), '', ('', 'r', imp.PY_SOURCE))
FileNotFoundError: [Errno 2] No such file or directory: 'bin/cloud-init'

** Affects: cloud-init
     Importance: Medium
     Assignee: Dan Watkins (daniel-thewatkins)
         Status: Confirmed

** Changed in: cloud-init
       Status: New => Confirmed

** Changed in: cloud-init
   Importance: Undecided => Medium

** Changed in: cloud-init
     Assignee: (unassigned) => Dan Watkins (daniel-thewatkins)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1455651

Title:
  re-enable test_cli in package builds

Status in Init scripts for use on cloud images:
  Confirmed

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_arguments_shows_error_message (unittests.test_cli.TestCLI)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_3.4/build/tests/unittests/test_cli.py", line 46, in test_no_arguments_shows_error_message
      self._call_main()
    File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_3.4/build/tests/unittests/test_cli.py", line 28, in _call_main
      'cli', open('bin/cloud-init'), '', ('', 'r', imp.PY_SOURCE))
  FileNotFoundError: [Errno 2] No such file or directory: 'bin/cloud-init'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1455651/+subscriptions


Follow ups

References