Support #21225
boot.txt files in simple_test_configs should be immediately usable
0%
Description
Currently, all of the boot.txt files in the simple_test_config directories contain the line
DAQ setup script: <yourArtdaqInstallationDir>/setupARTDAQDEMO
which makes them invalid for use. It might be better to make that
DAQ setup script: ${yourArtdaqInstallationDir}/setupARTDAQDEMO
and add $yourArtdaqInstallationDir=$PWD to run_demo or just_do_it...
Associated revisions
History
#1 Updated by John Freeman over 2 years ago
Interesting idea. If we do this, I'll want to make sure that DAQInterface, when it saves the boot file in the run records, expands environment variables first. In other words, that if we check back later to look at what happened during a run, in the saved boot file we'd see something like:
DAQ setup script: /home/yourname/your_artdaq-demo_installation/setupARTDAQDEMO
rather than
DAQ setup script: ${yourArtdaqInstallationDir}/setupARTDAQDEMO
...otherwise we'll lose the record of what setup script was actually used.
#2 Updated by John Freeman over 2 years ago
Commit 8241815637851b7348b0b8a4df7875900dacb189 on DAQInterface's develop branch implements my idea above.
#3 Updated by John Freeman over 2 years ago
With commit 6707208cb1003af0c38f8b56cfacef1a73560bdd on artdaq-demo's develop branch, the user sourceme file from the DAQInterface package gets edited in quick-mrb-start.sh so that a boot file which assigns the DAQ setup script like so:
DAQ setup script: $yourArtdaqInstallationDir/setupARTDAQDEMO
will work without any need for edits.
JCF: replace <yourArtdaqInstallationDir> with $yourArtdaqInstallationDir in simple_test_config's boot.txt files
Motivated by Issue #21225, it's now the case that if
yourArtdaqInstallationDir is set as an environment variable to the
base path of an artdaq-demo installation (i.e., a path which contains
setupARTDAQDEMO), then DAQInterface will immediately understand the
boot files in the various configurations since these boot files now
use this environment variable rather than the non-interpretable token
"<yourArtdaqInstallationDir>"
Please note that since the os.environ dictionary is set in Python on
program startup, that if you wish to change the value of
"yourArtdaqInstallationDir" you'll want to first kill DAQInterface,
set the value, then start a new DAQInterface instance.