Disassociate test directory from test name
This commit is contained in:
parent
ed1d2f858e
commit
d103af5dd4
@ -36,6 +36,7 @@ var (
|
|||||||
defaultTest = "all"
|
defaultTest = "all"
|
||||||
defaultDir = "."
|
defaultDir = "."
|
||||||
allTests = []string{"BlockTests", "StateTests", "TransactionTests", "VMTests", "RLPTests"}
|
allTests = []string{"BlockTests", "StateTests", "TransactionTests", "VMTests", "RLPTests"}
|
||||||
|
testDirMapping = map[string]string{"BlockTests": "BlockchainTests"}
|
||||||
skipTests = []string{}
|
skipTests = []string{}
|
||||||
|
|
||||||
TestFlag = cli.StringFlag{
|
TestFlag = cli.StringFlag{
|
||||||
@ -135,8 +136,13 @@ func runSuite(test, file string) {
|
|||||||
var err error
|
var err error
|
||||||
var files []string
|
var files []string
|
||||||
if test == defaultTest {
|
if test == defaultTest {
|
||||||
files, err = getFiles(filepath.Join(file, curTest))
|
// check if we have an explicit directory mapping for the test
|
||||||
|
if _, ok := testDirMapping[curTest]; ok {
|
||||||
|
files, err = getFiles(filepath.Join(file, testDirMapping[curTest]))
|
||||||
|
} else {
|
||||||
|
// otherwise assume test name
|
||||||
|
files, err = getFiles(filepath.Join(file, curTest))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
files, err = getFiles(file)
|
files, err = getFiles(file)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user