Bug 1504696

Summary: [RFE] Add parameter --tag and enable running of specified test phase
Product: [Fedora] Fedora Reporter: Tereza Cerna <tcerna>
Component: beakerlibAssignee: Dalibor Pospíšil <dapospis>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: azelinka, dapospis, jheger, mkyral, muller
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-23 07:49:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tereza Cerna 2017-10-20 12:22:35 UTC
It would be nice to run part of test according to specified tag. I have test cases with many phases and when one of these fails it is impractical to run all phases or comment all useless parts. 

This feature will always run setup and cleanup task, bug will excluded tasks with specified tag.

Example:
========
# cat test.sh
rlJournalStart
   rlPhaseStartSetup
      ...     
   rlPhaseStartTest "TEST 1"
      rlTag "test1"
      ...
   rlPhaseStartTest "TEST 2"
      rlTag "test2"
      ...
   rlPhaseStartCleanup
      ...
rlJournalEnd

# ./test.sh --tag=test1
will be run:
   setup task
   test "TEST 1"
   cleanup task

# ./test.sh --tag=test2
will be run:
   setup task
   test "TEST 2"
   cleanup task

# ./test.sh --tag=all
will be run:
   setup task
   test "TEST 1"
   test "TEST 2"
   cleanup task

Or running of multiple tags:

# ./test.sh --tag=test1+test2
will be run:
   setup task
   test "TEST 1"
   test "TEST 2"
   cleanup task

Comment 1 Dalibor Pospíšil 2017-10-23 07:49:36 UTC
Let's discuss this topic in the original RFE.

*** This bug has been marked as a duplicate of bug 508650 ***