package uat

import (
	"os"
	"testing"

	"github.com/DATA-DOG/godog"
)

var runDir = "."
var raceBinPath = "."

func TestMain(m *testing.M) {
	// Run the features tests from the compiled-in location.
	if err := os.Chdir(runDir); err != nil {
		panic(err)
	}

	// Prefix the path so that we can find our race-compiled binaries.
	os.Setenv("PATH", raceBinPath+":"+os.Getenv("PATH"))

	status := godog.Run(func(suite *godog.Suite) {
		configureSuite(suite)
	})
	os.Exit(status)
}

package uat

import (
	"os"
	"testing"

	"github.com/DATA-DOG/godog"
)

var runDir = "."
var raceBinPath = "."

const GodogSuiteName = "uat"

func TestMain(m *testing.M) {
	// Run the features tests from the compiled-in location.
	if err := os.Chdir(runDir); err != nil {
		panic(err)
	}

	// Prefix the path so that we can find our race-compiled binaries.
	os.Setenv("PATH", raceBinPath+":"+os.Getenv("PATH"))

	status := godog.Run(func(suite *godog.Suite) {
		configureSuite(suite)
	})
	os.Exit(status)
}

--- 
+++ 
@@ -9,8 +9,6 @@
 
 var runDir = "."
 var raceBinPath = "."
-
-const GodogSuiteName = "uat"
 
 func TestMain(m *testing.M) {
 	// Run the features tests from the compiled-in location.
Remove GodogSuiteName const from test runner

This const conflicts with the generated test runner
when using regular godog invocation. It's not required
for building/running the UAT suite via RPM.
