Bug 688218

Summary: make rpm does not handle regexp metachars in test names
Product: [Retired] Beaker Reporter: Petr Muller <pmuller>
Component: schedulerAssignee: Bill Peck <bpeck>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.7CC: bpeck, dcallagh, mcsontos, ohudlick, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-07 03:39:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Comment 1 Dan Callaghan 2011-03-16 21:41:58 UTC
It is indeed the test name that is causing this problem. Specifically the + characters, which are regexp metachars.

Something like this should work:

--- a/bin/rhts-mk-get-current-tag
+++ b/bin/rhts-mk-get-current-tag
@@ -29,7 +29,7 @@ PACKAGE_NAME=`rhts-mk-get-test-package-name`
 
 # for CVS, find the tag with the package name
 if [ -d "CVS" ]; then
-       CURRENT_TAG=`cvs -Q status -lv | grep -v '^?' | grep -E "${PACKAGE_NAME}-([0-9_\-]+)" | head -n 1  | awk '{print $1}'`
+       CURRENT_TAG=`cvs -Q status -lv | grep -v '^?' | grep -F "${PACKAGE_NAME}" | head -n 1  | awk '{print $1}'`
 fi
 
 # for svn, just use the svn repo revision number for the package revision number

Comment 2 Bill Peck 2011-03-23 18:12:31 UTC
dan's change has been pushed to gerrit for review.