Bug 1084988 - rlRun uses $i internally, overwriting my global variable $i
Summary: rlRun uses $i internally, overwriting my global variable $i
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: 20
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Petr Muller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: Release
Depends On:
Blocks: Fedora-beakerlib-1.9-3 1116317
TreeView+ depends on / blocked
 
Reported: 2014-04-07 13:14 UTC by Arjun Shankar
Modified: 2016-09-20 02:10 UTC (History)
5 users (show)

Fixed In Version: beakerlib-1.9-3.fc20
Clone Of:
: 1103284 (view as bug list)
Environment:
Last Closed: 2014-07-30 06:57:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Arjun Shankar 2014-04-07 13:14:32 UTC
rlRun uses $i internally, overwriting my global variable $i.

Possibly, there are other such cases as well?

Reproducer:

#!/bin/bash
. /usr/bin/rhts-environment.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1

rlJournalStart
    rlPhaseStartTest
        rlRun "i=5"
        rlRun "echo $i"
        rlRun "false" 1-10
        rlRun "bash -c 'exit $i'" 5 # this test fails
    rlPhaseEnd
rlJournalPrintText
rlJournalEnd

Version-Release number of selected component (if applicable):

beakerlib-1.8-4.fc20.noarch

If there are other such occurrences, I guess it would be good to wrap all of those up as `local's, or something.

Comment 2 Fedora Update System 2014-06-17 13:41:54 UTC
beakerlib-1.9-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/beakerlib-1.9-1.fc20

Comment 3 Fedora Update System 2014-06-17 23:29:25 UTC
Package beakerlib-1.9-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing beakerlib-1.9-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7442/beakerlib-1.9-1.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-07-02 08:01:35 UTC
beakerlib-1.9-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/beakerlib-1.9-2.fc20

Comment 5 Dalibor Pospíšil 2014-07-04 08:51:01 UTC
Please consider the package fixing this bug available in Fedora stable repos once bz1116308 is closed and RHEL stable repos once bz1116317 is closed.

Fixed in:
beakerlib-1.9-2.fc19
beakerlib-1.9-2.fc20
beakerlib-1.9-2.fc21
beakerlib-1.9-3.el5
beakerlib-1.9-2.el6
beakerlib-1.9-2.el7

Comment 6 Fedora Update System 2014-07-17 13:15:51 UTC
beakerlib-1.9-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/beakerlib-1.9-3.fc20

Comment 7 Fedora Update System 2014-07-30 06:57:24 UTC
beakerlib-1.9-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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