Skip to content

Commit

Permalink
qa: fix a few misfires from the seq_full transition
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott committed Feb 6, 2025
1 parent e90204a commit 413b47f
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion qa/023
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ _disable_agent_restart()

trap "_cleanup; exit \$status" 0 1 2 3 15

rm -f $here/$seq_full
rm -f $seq_full
echo "SAVE_LOGGER=$SAVE_LOGGER" >>$seq_full

# real QA test starts here
Expand Down
2 changes: 1 addition & 1 deletion qa/051
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ me=`hostname`

_needclean=true

rm -f $here/$seq_full
rm -f $seq_full

_filter_hostnames()
{
Expand Down
2 changes: 1 addition & 1 deletion qa/053
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ _filter()

trap "rm -f $tmp $tmp.*; exit" 0 1 2 3 15

rm -f $here/$seq_full
rm -f $seq_full

# real QA test starts here
cat >$tmp.config <<End-of-File
Expand Down
2 changes: 1 addition & 1 deletion qa/056
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ _filter()
}

trap "rm -f $tmp $tmp.*; exit" 0 1 2 3 15
rm -f $here/$seq_full
rm -f $seq_full

# real QA test starts here
cat >$tmp.config <<End-of-File
Expand Down
8 changes: 4 additions & 4 deletions qa/1052.bash
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $python -c "import six" >/dev/null 2>&1
[ $? -eq 0 ] || _notrun "python six module not installed"

status=1 # failure is the default!
$sudo rm -rf $tmp.* $seq.full
$sudo rm -rf $tmp.* $seq_full
mkdir $tmp
chmod ugo+rwx $tmp
cd $tmp
Expand Down Expand Up @@ -68,7 +68,7 @@ _drain_output_sorted()

_filter()
{
tee -a $here/$seq.full | \
tee -a $seq_full | \
sed \
-e "s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;" \
-e '/pmResult/s/ .* numpmid/ ... numpmid/' \
Expand All @@ -81,7 +81,7 @@ _filter()

_filter2()
{
tee -a $here/$seq.full | \
tee -a $seq_full | \
sed \
-e '2,$s/^\([0-9][0-9]*\) [0-9][0-9]* /\1 TIMESTAMP /'
}
Expand Down Expand Up @@ -484,7 +484,7 @@ _drain_output
# Wait for dbpmda to quit.
wait

cat json.log >>$here/$seq.full
cat json.log >> $seq_full

status=0
exit
2 changes: 1 addition & 1 deletion qa/174
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ gotGetPDU==1 && $1 ~ /[0-9][0-9][0-9]:/ { next }

status=1
trap "$sudo rm -f $tmp.*; exit \$status" 0 1 2 3 15
$sudo rm -f $here/$seq_full
$sudo rm -f $seq_full

# real QA test starts here

Expand Down
5 changes: 0 additions & 5 deletions qa/264
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,10 @@ status=1 # failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

# real QA test starts here

src/pmnsinarchives >$tmp.out 2>$tmp.err
cat $tmp.err
cat $tmp.out

# optional stuff if your test has verbose output to help resolve problems
#echo
#echo "If failure, check $seq.full (this) and $seq.full.ok (reference)"

# success, all done
status=0
exit
2 changes: 1 addition & 1 deletion qa/274
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "QA output created by $seq"
signal=$PCP_BINADM_DIR/pmsignal
status=1
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
$sudo rm -f $here/$seq_full
$sudo rm -f $seq_full

_filter()
{
Expand Down
2 changes: 1 addition & 1 deletion qa/354
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ NR == 1 { if ($2 != "PID") {
{ print "ps:",$2,$cmd,$(cmd+1),$(cmd+2),$(cmd+3),$(cmd+4) }'
}

rm -f $here/$seq_full
rm -f $seq_full

# NOT the default pmconfirm(1), please
#
Expand Down
2 changes: 1 addition & 1 deletion qa/430
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ EOF
}

# real QA test starts here
rm -f $here/$seq_full
rm -f $seq_full

host1=$LOCALHOST
host2=$LOCALHOST"super"
Expand Down
2 changes: 1 addition & 1 deletion qa/864
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ _filter()

# real QA test starts here

rm -f $here/$seq_full
rm -f $seq_full
pcp collectl -R 1.25 -i 1 | tee -a $seq_full | _filter

# success, all done
Expand Down

0 comments on commit 413b47f

Please sign in to comment.