Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #7343 (closed)

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

Bug: broken bin/omero config def

Reported by: jamoore Owned by: jamoore
Priority: major Milestone: OMERO-4.4
Component: General Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-11-29 (3)

Description

~/git/dist $ bin/omero config def
default
~/git/dist $ bin/omero config def x
~/git/dist $ bin/omero config def
default

Test is also failing:

~/git/components/tools/OmeroPy $ python test/clitest/prefs.py TestPrefs.testDrop
F
======================================================================
FAIL: testDrop (__main__.TestPrefs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/clitest/prefs.py", line 138, in testDrop
    self.assertStdout(["x"])
  File "test/clitest/prefs.py", line 42, in assertStdout
    self.assertEquals(set(args), set(self.cli.OUTPUT))
AssertionError: set(['x']) != set(['default'])

----------------------------------------------------------------------
Ran 1 test in 0.040s

FAILED (failures=1)

Change History (3)

comment:1 Changed 12 years ago by jmoore

Related to this commit:

commit dae02051a34fea024f8e9d6e6810b11e48ce4e7c
Author: jmoore <jmoore@05709c45-44f0-0310-885b-81a1db45b4a6>
Date:   Mon Jul 5 14:48:55 2010 +0000

    OmeroConfig: resetting __ACTIVE__ on environmentless call (See #800)

which changed the default method in omero/config.py

comment:2 Changed 12 years ago by jmoore

  • Remaining Time changed from 0.1 to 0
  • Resolution set to fixed
  • Status changed from new to closed

Fixed locally. To be pushed to sprint4-bugs. The separation made was that OMERO_CONFIG=xyz would not change the active saved value of the config.xml file, whereas a user specification, either via bin/omero config def abc or ConfigXml(env_config="abc") would set the value.

comment:3 Changed 12 years ago by jmoore <josh@…>

(In [1ddf8c073971f966f1f9fc35cbad995b1b0f2311/ome.git]) Fix overly strict config default (Fix #7343)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.71931 sec.)

We're Hiring!