Task #7343 (closed)
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 8 years ago by jmoore
comment:2 Changed 8 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 8 years ago by jmoore <josh@…>
(In [1ddf8c073971f966f1f9fc35cbad995b1b0f2311/ome.git]) Fix overly strict config default (Fix #7343)
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