remove TestBypass flag (#566)

Tests should explicitly state their target configuration file, so no need
to use fallback default override flag
This commit is contained in:
Rauno Ots
2020-09-28 01:45:40 +02:00
committed by GitHub
parent d9bcf8246f
commit ecbc68561f
4 changed files with 11 additions and 18 deletions

View File

@@ -4,7 +4,6 @@ import (
"bufio"
"encoding/json"
"errors"
"flag"
"fmt"
"io"
"io/ioutil"
@@ -1484,10 +1483,6 @@ func GetFilePath(configfile string) (string, error) {
return configfile, nil
}
if flag.Lookup("test.v") != nil && !TestBypass {
return TestFile, nil
}
exePath, err := common.GetExecutablePath()
if err != nil {
return "", err