Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 838575

Summary: beaker-wizard: fail in case rhts environment cannot be loaded
Product: [Retired] Beaker Reporter: Karel Srot <ksrot>
Component: command lineAssignee: Petr Šplíchal <psplicha>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 0.5CC: bpeck, dcallagh, 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: 2012-07-20 00:38:39 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 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.