Use newer charm.v6 repo and update tests #30

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
3 participants
Owner

wallyworld commented Sep 28, 2015

Update to use newer charm.v6 repo.
Fix a failing test.
Allow tests which use javascript in mongo to be skipped.

Member

jujugui commented Sep 28, 2015

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmrepo/56/
Test FAILed.

flag.go
+ jujutesting "github.com/juju/testing"
+)
+
+var noTestMongoJs *bool = flag.Bool("notest-mongojs", false, "Disable MongoDB tests that require JavaScript")
@rogpeppe

rogpeppe Sep 28, 2015

Owner

What's this doing in a non-test file? It seems entirely test related to me and AFAICS there's no non-test code that uses it.

@rogpeppe

rogpeppe Sep 28, 2015

Owner

Oh yes, you can omit the '*bool' here too.

@wallyworld

wallyworld Sep 28, 2015

Owner

I copied this directly from charmstore repo

flag.go
+var noTestMongoJs *bool = flag.Bool("notest-mongojs", false, "Disable MongoDB tests that require JavaScript")
+
+func init() {
+ if os.Getenv("JUJU_NOTEST_MONGOJS") == "1" || jujutesting.MgoServer.WithoutV8 {
@rogpeppe

rogpeppe Sep 28, 2015

Owner

I think let's just use either the env var or the flag. Probably the env var 'cos that means you can go test ./... .

Member

jujugui commented Sep 28, 2015

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmrepo/57/
Test FAILed.

Member

jujugui commented Sep 28, 2015

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmrepo/58/
Test PASSed.

@wallyworld wallyworld closed this Sep 28, 2015

@wallyworld wallyworld deleted the wallyworld:update-charm.v6-dep branch Sep 28, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment