Urgh, flip the clean-data flag and don't use it in travis.

pull/32/head
John Shahid 2013-11-08 14:47:36 -05:00
parent b67722636a
commit 23f3609a26
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ before_install:
- sudo apt-get install -y protobuf-compiler valgrind
install: ./build.sh
script: ./test.sh -- -clean-data
script: ./test.sh
notifications:
irc: "chat.freenode.net#influxdb"

View File

@ -134,12 +134,12 @@ func (self *IntegrationSuite) createUser() error {
return nil
}
var cleanData = flag.Bool("clean-data", false, "Clean data before running the benchmark tests")
var noCleanData = flag.Bool("no-clean-data", true, "Clean data before running the benchmark tests")
var wroteData = true
func (self *IntegrationSuite) SetUpSuite(c *C) {
if *cleanData {
if !*noCleanData {
wroteData = false
err := os.RemoveAll("/tmp/influxdb")
c.Assert(err, IsNil)
@ -149,7 +149,7 @@ func (self *IntegrationSuite) SetUpSuite(c *C) {
err := self.server.start()
c.Assert(err, IsNil)
if *cleanData {
if !*noCleanData {
err = self.createUser()
c.Assert(err, IsNil)
}