Bug 838575 - beaker-wizard: fail in case rhts environment cannot be loaded
Summary: beaker-wizard: fail in case rhts environment cannot be loaded
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 0.5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Petr Šplíchal
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-09 14:01 UTC by Karel Srot
Modified: 2019-05-22 13:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-20 00:38:39 UTC
Embargoed:


Attachments (Terms of Use)

Description Karel Srot 2012-07-09 14:01:15 UTC
Description of problem:

Please update the wizard template so the test fails if rhts enviroment cannot be loaded.

Change
# Include rhts environment
. /usr/bin/rhts-environment.sh
. /usr/share/rhts-library/rhtslib.sh

into something similar to
# Include rhts environment
. /usr/bin/rhts-environment.sh || exit 1
. /usr/share/rhts-library/rhtslib.sh || exit 1

I am requesting this because sometimes it happens that respective packages are missing on the system and when I execute the test manually I can break my system - beakerlib functions like rlFileBackup are not available and therefore I cannot restore to the previous state properly.

Comment 1 Petr Šplíchal 2012-07-09 14:52:50 UTC
This seems reasonable. Fix pushed to gerrit for review:
http://gerrit.beaker-project.org/1189

Comment 4 Dan Callaghan 2012-07-17 05:16:37 UTC
Verified using beaker-wizard from rhts-devel-4.50-1.el6eng.noarch.

Comment 5 Dan Callaghan 2012-07-20 00:38:39 UTC
Beaker 0.9.1 has been released.


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