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>2015-01-21 21:23:59 -0500
commit3793ad983b1fe2873c55c6a4066669d2b95fc871 (patch)
treef516b326ad86a7c715c79c9a51b3edec7e7da88f
parent8167729e92f952e50c38e22b554cff21d9ad168d (diff)
downloadmce-test-3793ad983b1fe2873c55c6a4066669d2b95fc871.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