mirror of https://gitee.com/bigwinds/arangodb
Escape slashes for dos
This commit is contained in:
parent
b0c12a9d57
commit
dce738ce9c
|
@ -130,6 +130,8 @@ OPTION_OUTPUT_FILE = 4
|
||||||
|
|
||||||
fstate = OPTION_NORMAL
|
fstate = OPTION_NORMAL
|
||||||
|
|
||||||
|
escapeBS = re.compile("\\\\")
|
||||||
|
doubleBS = "\\\\\\\\"
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
### @brief generate arangosh example headers with functions etc. needed later
|
### @brief generate arangosh example headers with functions etc. needed later
|
||||||
|
@ -326,8 +328,8 @@ def generateArangoshOutput(testName):
|
||||||
testName,
|
testName,
|
||||||
testName,
|
testName,
|
||||||
value[TESTLINES][0][2],
|
value[TESTLINES][0][2],
|
||||||
OutputDir,
|
escapeBS.sub(doubleBS, OutputDir),
|
||||||
MapSourceFiles[testName]
|
escapeBS.sub(doubleBS, MapSourceFiles[testName])
|
||||||
)
|
)
|
||||||
except Exception as x:
|
except Exception as x:
|
||||||
print x
|
print x
|
||||||
|
@ -404,8 +406,8 @@ def generateArangoshRun(testName):
|
||||||
testName,
|
testName,
|
||||||
testName,
|
testName,
|
||||||
startLineNo,
|
startLineNo,
|
||||||
OutputDir,
|
escapeBS.sub(doubleBS, OutputDir),
|
||||||
MapSourceFiles[testName],
|
escapeBS.sub(doubleBS, MapSourceFiles[testName]),
|
||||||
value[STRING].lstrip().rstrip())
|
value[STRING].lstrip().rstrip())
|
||||||
|
|
||||||
if testName in ArangoshExpect:
|
if testName in ArangoshExpect:
|
||||||
|
|
Loading…
Reference in New Issue