mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Examples: Fix DDS agent log retrieval
This commit is contained in:
parent
14227aeb6d
commit
f2d7bbeb21
|
@ -78,10 +78,11 @@ dds-info --active-topology
|
||||||
dds-topology --stop
|
dds-topology --stop
|
||||||
dds-info --active-topology
|
dds-info --active-topology
|
||||||
|
|
||||||
dds-agent-cmd getlog -a
|
# TODO Simplify, see https://github.com/FairRootGroup/DDS/issues/369
|
||||||
logDir="${wrkDir}/logs"
|
if dds-agent-cmd getlog -a; then
|
||||||
for file in $(find "${logDir}" -name "*.tar.gz"); do tar -xf ${file} -C "${logDir}" ; done
|
logDir=$(eval "echo $(dds-user-defaults --key server.sandbox_dir)/log/agents")
|
||||||
echo "AGENT LOG FILES IN: ${logDir}"
|
echo "AGENT LOG FILES IN: ${logDir}"
|
||||||
|
fi
|
||||||
|
|
||||||
# This string is used by ctest to detect success
|
# This string is used by ctest to detect success
|
||||||
echo "Example successful :)"
|
echo "Example successful :)"
|
||||||
|
|
|
@ -69,10 +69,11 @@ dds-info --active-topology
|
||||||
dds-topology --stop
|
dds-topology --stop
|
||||||
dds-info --active-topology
|
dds-info --active-topology
|
||||||
|
|
||||||
dds-agent-cmd getlog -a
|
# TODO Simplify, see https://github.com/FairRootGroup/DDS/issues/369
|
||||||
logDir="${wrkDir}/logs"
|
if dds-agent-cmd getlog -a; then
|
||||||
for file in $(find "${logDir}" -name "*.tar.gz"); do tar -xf ${file} -C "${logDir}" ; done
|
logDir=$(eval "echo $(dds-user-defaults --key server.sandbox_dir)/log/agents")
|
||||||
echo "AGENT LOG FILES IN: ${logDir}"
|
echo "AGENT LOG FILES IN: ${logDir}"
|
||||||
|
fi
|
||||||
|
|
||||||
# This string is used by ctest to detect success
|
# This string is used by ctest to detect success
|
||||||
echo "Example successful :)"
|
echo "Example successful :)"
|
||||||
|
|
|
@ -69,10 +69,11 @@ dds-info --active-topology
|
||||||
dds-topology --stop
|
dds-topology --stop
|
||||||
dds-info --active-topology
|
dds-info --active-topology
|
||||||
|
|
||||||
dds-agent-cmd getlog -a
|
# TODO Simplify, see https://github.com/FairRootGroup/DDS/issues/369
|
||||||
logDir="${wrkDir}/logs"
|
if dds-agent-cmd getlog -a; then
|
||||||
for file in $(find "${logDir}" -name "*.tar.gz"); do tar -xf ${file} -C "${logDir}" ; done
|
logDir=$(eval "echo $(dds-user-defaults --key server.sandbox_dir)/log/agents")
|
||||||
echo "AGENT LOG FILES IN: ${logDir}"
|
echo "AGENT LOG FILES IN: ${logDir}"
|
||||||
|
fi
|
||||||
|
|
||||||
# This string is used by ctest to detect success
|
# This string is used by ctest to detect success
|
||||||
echo "Example successful :)"
|
echo "Example successful :)"
|
||||||
|
|
|
@ -76,10 +76,11 @@ dds-info --active-topology
|
||||||
dds-topology --stop
|
dds-topology --stop
|
||||||
dds-info --active-topology
|
dds-info --active-topology
|
||||||
|
|
||||||
dds-agent-cmd getlog -a
|
# TODO Simplify, see https://github.com/FairRootGroup/DDS/issues/369
|
||||||
logDir="${wrkDir}/logs"
|
if dds-agent-cmd getlog -a; then
|
||||||
for file in $(find "${logDir}" -name "*.tar.gz"); do tar -xf ${file} -C "${logDir}" ; done
|
logDir=$(eval "echo $(dds-user-defaults --key server.sandbox_dir)/log/agents")
|
||||||
echo "AGENT LOG FILES IN: ${logDir}"
|
echo "AGENT LOG FILES IN: ${logDir}"
|
||||||
|
fi
|
||||||
|
|
||||||
# This string is used by ctest to detect success
|
# This string is used by ctest to detect success
|
||||||
echo "Example successful :)"
|
echo "Example successful :)"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user