[Feature] N/A
[Cause] Unit tests using fixtures can't be run separately,
because their names contains bash special characters.
[Solution] Put test names inside quotes.
[Verification] Install, launch single test case with fixture.
Change-Id: I61e426957e080b1a145bd901c155677775d571ba
import subprocess
import argparse
import os
+import re
_defLaunchArgs = ["--report_format=XML",
"--catch_system_errors=no",
if externalToolCmd and not _checkIfBinExists(externalToolCmd[0]):
return
+ cmd[1:] = ["'{0}'".format(arg) if re.search("^\s*[^']*/.*<.*>\s*$", arg)
+ else arg
+ for arg in cmd[1:]]
+
log.info("Starting " + cmd[0] + " ...")
if parsing:
commandPrefix = "vsm_launch_test.py " + bin + " -t "
self.infoTitle("Some tests failed. Use following command(s) to launch them explicitly:")
for test in self.__failedTests:
- self.error(self.__indentChar + commandPrefix + test)
+ self.error(self.__indentChar + commandPrefix + "'{0}'".format(test))
def terminatedBySignal(self, bin, signum):
self.error("\n=========== FAILED ===========\n")