Skip to content

Commit

Permalink
Merge branch 'main' of ../pcp
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcdonell committed Jul 23, 2024
2 parents 5fdf8bc + 369a312 commit 64deba7
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
52 changes: 52 additions & 0 deletions qa/1526
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/bin/sh
# PCP QA Test No. 1526
# QA environment prober ...
#
# Normally this does nothing and says nothing. But it provides a hook
# for exploring the environment where QA is run, especially useful for
# VMs and containers in github's CI infrastructure.
#
# If the "hook" is being used, it _must_ generate something on stdout
# and then $seq.out and/or $seq.full may be used to deliver the probe's
# payload.
#
# Copyright (c) 2024 Ken McDonell. All Rights Reserved.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

$sudo rm -rf $tmp $tmp.* $seq.full

_cleanup()
{
cd $here
$sudo rm -rf $tmp $tmp.*
}

status=0 # success is the default!
trap "_cleanup; exit \$status" 0 1 2 3 15

# real QA test starts here

echo "QA environment probing ... this is NOT a qa/$seq failure"
echo "=== env ==="
env
for dir in /sys /sys/block
do
echo "=== $dir ==="
if [ -d "$dir" ]
then
ls -l "$dir"
else
echo "Not a directory!"
fi
done

# all done
exit
2 changes: 2 additions & 0 deletions qa/1526.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
QA output created by 1526
[skeleton from qa/new, replace me]
1 change: 1 addition & 0 deletions qa/group
Original file line number Diff line number Diff line change
Expand Up @@ -1992,6 +1992,7 @@ x11
1523 pmlogdump local multi-archive
1524 pmview local
1525 pmview dkvis mpvis
1526 other local
1530 pmda.zfs local valgrind
1531 pmda.zfs local valgrind
1532 pmda.zfs local
Expand Down
4 changes: 4 additions & 0 deletions qa/triaged
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
1991 Ubuntu 16\.04 Python here is 3.5.2 and there are a couple of
timestamps that are off by one second ... not worth
wasting more time on
# special QA environment probing test
#
1526 .* failure indicates the environment probe is active,
not a QA failure
# tzset botch for Python time module on FreeBSD 14 ... which is really
# a localtime() botch as per https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276281
#
Expand Down

0 comments on commit 64deba7

Please sign in to comment.