Skip to content

Commit

Permalink
Test if CI passes
Browse files Browse the repository at this point in the history
Signed-off-by: Morgan Tocker <tocker@gmail.com>
  • Loading branch information
morgo committed Aug 10, 2019
1 parent 7c9da50 commit 5a8b3fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion build.env
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ export VTROOT
if [[ "$VTTOP" == "${VTTOP/\/src\/vitess.io\/vitess/}" ]]; then
echo "WARNING: VTTOP($VTTOP) does not contain src/vitess.io/vitess"
fi

10 changes: 5 additions & 5 deletions go/vt/mysqlctl/mysqld.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func getVersionFromEnv() (flavor mysqlFlavor, ver serverVersion, err error) {
case "MySQL56":
return flavorMySQL, serverVersion{5, 7, 10}, nil
}
return flavor, ver, fmt.Errorf("Could not determine version from MYSQL_FLAVOR: %s", env)
return flavor, ver, fmt.Errorf("could not determine version from MYSQL_FLAVOR: %s", env)
}

func getVersionString() (string, error) {
Expand Down Expand Up @@ -183,19 +183,19 @@ func parseVersionString(version string) (flavor mysqlFlavor, ver serverVersion,
}
v := versionRegex.FindStringSubmatch(version)
if len(v) != 4 {
return flavor, ver, fmt.Errorf("Could not parse server version from: %s", version)
return flavor, ver, fmt.Errorf("could not parse server version from: %s", version)
}
ver.Major, err = strconv.Atoi(string(v[1]))
if err != nil {
return flavor, ver, fmt.Errorf("Could not parse server version from: %s", version)
return flavor, ver, fmt.Errorf("could not parse server version from: %s", version)
}
ver.Minor, err = strconv.Atoi(string(v[2]))
if err != nil {
return flavor, ver, fmt.Errorf("Could not parse server version from: %s", version)
return flavor, ver, fmt.Errorf("could not parse server version from: %s", version)
}
ver.Patch, err = strconv.Atoi(string(v[3]))
if err != nil {
return flavor, ver, fmt.Errorf("Could not parse server version from: %s", version)
return flavor, ver, fmt.Errorf("could not parse server version from: %s", version)
}

return
Expand Down
8 changes: 4 additions & 4 deletions test/local_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ done
echo "Run Go client script..."
go run client.go -server=localhost:15991 || teardown

# echo "Run Java client script..."
# ./client_java.sh || teardown
echo "Run Java client script..."
./client_java.sh || teardown

# echo "Run JDBC client script..."
# ./client_jdbc.sh || teardown
echo "Run JDBC client script..."
./client_jdbc.sh || teardown

exitcode=0
teardown

0 comments on commit 5a8b3fd

Please sign in to comment.