Ticket #3077 (closed defect: Fixed)

Opened 8 months ago

Last modified 3 months ago

On appliance unit tests don't run

Reported by: marc Owned by: marc
Priority: 1 - Blocker Milestone: zenoss-2.2
Component: Testing Version: 2.1.3
Keywords: Cc:
Community Patch Attached: Deployed @ Customer:
Installer: Maintenance Target:
Specific ZenPack: Maintenance Status:
Documentation Note?: Not required Regression:

Description

[zenoss@localhost bin]$ runtests -t unit
Traceback (most recent call last):

File "/home/zenoss/bin/runtests", line 99, in ?

main()

File "/home/zenoss/bin/runtests", line 91, in main

runUnitTests(args, options.name, options.coverage)

File "/home/zenoss/bin/runtests", line 57, in runUnitTests

exitcodes.append(call(parts))

File "/usr/lib/python2.4/subprocess.py", line 428, in call

return Popen(*args, **kwargs).wait()

File "/usr/lib/python2.4/subprocess.py", line 558, in init

errread, errwrite)

File "/usr/lib/python2.4/subprocess.py", line 991, in _execute_child

raise child_exception

OSError: [Errno 2] No such file or directory
[zenoss@localhost bin]$

Change History

Changed 8 months ago by marc

  • status changed from new to assigned

This is because runtests.py is looking for zopectl in ZOPEHOME. The appliance has zopectl in ZENHOME. runtests expects ZOPEHOME to be empty so that it uses ZENHOME.

Changed 8 months ago by marc

  • status changed from assigned to closed
  • resolution set to fixed

(In [9143]) * On the appliance zopectl isn't in ZOPEHOME but in ZENHOME, all zenoss instances have zopectl in ZENHOME. fixes #3077

Changed 3 months ago by bbibeault

  • reviewed set to 1
Note: See TracTickets for help on using tickets.