aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShaoyong Wang <shaoyongx.wang@intel.com>2012-07-23 11:03:18 +0800
committerChen Gong <gong.chen@linux.intel.com>2012-07-31 05:23:21 +0800
commitd62a3c47a6ce72e5c034665864f7432b0a51499f (patch)
treef516b326ad86a7c715c79c9a51b3edec7e7da88f
parent1d474a9964b15e7986301f4c70dc14794d1df769 (diff)
downloadmce-test-d62a3c47a6ce72e5c034665864f7432b0a51499f.tar.gz
Fix matching issue when selecting test cases from the menu
Old logic will filter out comment lines and the words containing on/off letters in case list files when executing case selecting. Signed-off-by: Shaoyong Wang <shaoyongx.wang@intel.com> Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
-rwxr-xr-xmcemenu2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcemenu b/mcemenu
index 33b311c..cfd93c5 100755
--- a/mcemenu
+++ b/mcemenu
@@ -346,7 +346,7 @@ ras_scenarios()
done)
#remove the first prefix "\|"
TMPMODE=${TMPMODE:2}
- sed -i -e "s/\(.*\)on/\1off/g" $SCENARIO_DIR/$scenario
+ sed -i -e "s/\(^[^#].*\)on$/\1off/g" $SCENARIO_DIR/$scenario
if [ X${TMPMODE} != X ]; then
sed -i -e "s/\(\(${TMPMODE}\).*\)off/\1on/g" \
$SCENARIO_DIR/$scenario