Bug 840084 - REBOOTCOUNT not documented
Summary: REBOOTCOUNT not documented
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: Doc
Version: 0.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raymond Mancy
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-13 16:05 UTC by Petr Šplíchal
Modified: 2019-05-22 13:43 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-09 08:06:57 UTC
Embargoed:


Attachments (Terms of Use)

Description Petr Šplíchal 2012-07-13 16:05:52 UTC
Description of problem:

Looking through the Beaker documentation I was not able to find
any mention about the REBOOTCOUNT variable which is quite useful
for tasks which require the system to be rebooted to detect
whether the reboot already happened.

This is implemented in rhts-test-runner.sh:
http://git.fedorahosted.org/git/?p=rhts.git;a=blob;f=bin/rhts-test-runner.sh;hb=HEAD

138 if [ ! -e "/var/cache/rhts/$TESTID/reboot" ]; then
139     mkdir -p /var/cache/rhts/$TESTID
140     export REBOOTCOUNT=0
141     echo 1 > /var/cache/rhts/$TESTID/reboot
142 else
143     export REBOOTCOUNT=$(cat /var/cache/rhts/$TESTID/reboot)
144     echo $(expr $REBOOTCOUNT + 1) > /var/cache/rhts/$TESTID/reboot
145 fi

Please, document this in the Beaker Deployment Guide. Thanks.

Comment 1 Raymond Mancy 2012-08-01 13:00:59 UTC
http://gerrit.beaker-project.org/#/c/1266/

Comment 3 Dan Callaghan 2012-08-09 08:06:57 UTC
Beaker 0.9.2 has been released.


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