Failing tests in trunk

Bug #1435286 reported by Tom Haddon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Fix Released
Medium
David Ames

Bug Description

The following tests are failing in trunk:

======================================================================
ERROR: test_workspace_new (mojo.tests.test_cli.WorkspaceNewTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mthaddon/mojo/mojo/tests/test_cli.py", line 77, in test_workspace_new
    run_with_args(args)
  File "/home/mthaddon/mojo/mojo/cli.py", line 507, in run_with_args
    args.func(args)
  File "/home/mthaddon/mojo/mojo/cli.py", line 174, in create_workspace
    stage=stage, manifest_file=manifest_file)
  File "/home/mthaddon/mojo/mojo/__init__.py", line 490, in create_workspace
    sys.exit(1)
SystemExit: 1
-------------------- >> begin captured stdout << ---------------------
Project, 'my-project', does not appear to exist.
Please run 'sudo mojo project-new --series trusty my-project' to create the project.
Or check the file permissions on /tmp/tmpTYL49g/my-project

--------------------- >> end captured stdout << ----------------------

======================================================================
ERROR: test_workspace_new_env_vars (mojo.tests.test_cli.WorkspaceNewTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mthaddon/mojo/mojo/tests/test_cli.py", line 98, in test_workspace_new_env_vars
    run_with_args(args)
  File "/home/mthaddon/mojo/mojo/cli.py", line 507, in run_with_args
    args.func(args)
  File "/home/mthaddon/mojo/mojo/cli.py", line 174, in create_workspace
    stage=stage, manifest_file=manifest_file)
  File "/home/mthaddon/mojo/mojo/__init__.py", line 490, in create_workspace
    sys.exit(1)
SystemExit: 1
-------------------- >> begin captured stdout << ---------------------
Project, 'your-project', does not appear to exist.
Please run 'sudo mojo project-new --series gusty your-project' to create the project.
Or check the file permissions on /tmp/tmpOe5TxV/your-project

Related branches

Revision history for this message
David Ames (thedac) wrote :

Problem was due to new project validation code that went into place. The unit tests mock the workspace creation but not the project creation. This MP mocks the project bits that are necessary for the create_workspace to function.

https://code.launchpad.net/~thedac/mojo/non-spec-branch-location-fix/+merge/253886

David Ames (thedac)
Changed in mojo:
importance: Undecided → Medium
assignee: nobody → David Ames (thedac)
status: New → Fix Committed
David Ames (thedac)
Changed in mojo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.