Bug 1504696 - [RFE] Add parameter --tag and enable running of specified test phase
Summary: [RFE] Add parameter --tag and enable running of specified test phase
Keywords:
Status: CLOSED DUPLICATE of bug 508650
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dalibor Pospíšil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-20 12:22 UTC by Tereza Cerna
Modified: 2017-10-23 07:49 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-10-23 07:49:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.