Urgh, flip the clean-data flag and don't use it in travis.
parent
b67722636a
commit
23f3609a26
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue