mongo: testEnsureNumaCtl fails when $TMPDIR is set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Won't Fix
|
Medium
|
@les |
Bug Description
This assertion can fail because the temp dir does not necessarily
match the asserted pattern.
Also, FWIW, there is no point in having the '($MULTI_NODE)' pattern
there - it can never match (because the $ is not escaped) and
the ?.* after it means that it is irrelevant whether it matches or not.
Example failure.
------
FAIL: mongo_test.go:202: MongoSuite.
[LOG] 0:00.000 INFO juju.mongo Ensuring mongo server is running; data directory /tmp/alesstimec
[LOG] 0:00.000 INFO juju.mongo installing juju-mongodb
[LOG] 0:00.000 INFO juju.utils.
[LOG] 0:00.095 DEBUG juju.mongo using mongod: /tmp/alesstimec
mongo_test.go:203:
dataDir := s.testEnsureSer
mongo_test.go:315:
c.
... value string = "/tmp/alesstime
... regex string = "($MULTI_
------
FAIL: mongo_test.go:283: MongoSuite.
[LOG] 0:00.000 INFO juju.mongo Ensuring mongo server is running; data directory /tmp/alesstimec
[LOG] 0:00.000 INFO juju.mongo installing juju-mongodb and numactl
[LOG] 0:00.000 INFO juju.utils.
[LOG] 0:00.050 INFO juju.utils.
[LOG] 0:00.093 DEBUG juju.mongo using mongod: /tmp/alesstimec
mongo_test.go:284:
s.
mongo_test.go:315:
c.
... value string = "$MULTI_
... regex string = "($MULTI_
OOPS: 49 passed, 2 FAILED
--- FAIL: Test (10.66s)
FAIL
FAIL github.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: unit-tests |
Changed in juju-core: | |
assignee: | nobody → @les (alesstimec) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Won't Fix |