Now it checks and attempts to create symbolic links only if the directory it works from isn't empty.
(When it is, calling "ln -s ../somedir/*.txt ." creates broken link named *.txt and plot.sh,
so the plotting script attempts to create a plot, which fails and stops the rest of the plotting from happening.)
NO_GW_NEEDED=true
main() {
- ln -s ../filter/*.txt .
+ #Check that the test wasn't skipped.
+ if [ "$(ls -A ../filter)" ]; then
+ #Otherwise this would create *.txt file and plot.sh and break the automation
+ ln -s ../filter/*.txt .
+ else
+ SKIPPED=1; return;
+ fi;
}
ids="0 $(seq 255 256 2047)"
. lib.sh
main() {
- ln -s ../nop-highprio/*.txt .
+ #Check that the test wasn't skipped.
+ if [ "$(ls -A ../nop-highprio)" ]; then
+ #Otherwise this would create *.txt file and plot.sh and break the automation
+ ln -s ../nop-highprio/*.txt .
+ else
+ SKIPPED=1; return;
+ fi;
}
plot_cmds() {
. lib.sh
main() {
- ln -s ../nop/*.txt .
+ #Check that the test wasn't skipped.
+ if [ "$(ls -A ../nop)" ]; then
+ #Otherwise this would create *.txt file and plot.sh and break the automation
+ ln -s ../nop/*.txt .
+ else
+ SKIPPED=1; return;
+ fi;
}
ADDITIONAL_PLOTS=detail
NO_GW_NEEDED=true
main() {
- ln -s ../user/*.txt .
+ #Check that the test wasn't skipped.
+ if [ "$(ls -A ../user)" ]; then
+ #Otherwise this would create *.txt file and plot.sh and break the automation
+ ln -s ../user/*.txt .
+ else
+ SKIPPED=1; return;
+ fi;
}
#ADDITIONAL_PLOTS=detail