| Summary: | make rpm does not handle regexp metachars in test names | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Petr Muller <pmuller> |
| Component: | scheduler | Assignee: | Bill Peck <bpeck> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.7 | CC: | 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: | |
dan's change has been pushed to gerrit for review. |
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