Skip to content
Snippets Groups Projects
Commit e7cd5691 authored by Simon Rose's avatar Simon Rose
Browse files

Debugging weird error: it works on my machine...

parent 4faa5e66
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ default: test ...@@ -4,7 +4,7 @@ default: test
.PHONY: test .PHONY: test
test: check_env clean test: check_env clean
@./test.sh test.txt @./test.sh debug.txt
.PHONY: check_env .PHONY: check_env
check_env: guard-EPICS_BASE guard-E3_REQUIRE_VERSION check_env: guard-EPICS_BASE guard-E3_REQUIRE_VERSION
......
# Basic set of tests.
#
# Note that the first entry is the requested test version (- means none requested)
# The second entry is what is expected to be loaded (- means it is expected to fail)
# The third and other entries are the versions to install.
# Only load exactly the given build number if specified.
0.0.1+0 - 0.0.1+1
...@@ -84,14 +84,18 @@ function test_require { ...@@ -84,14 +84,18 @@ function test_require {
search_string="^Loaded $MODULENAME version $expected\$" search_string="^Loaded $MODULENAME version $expected\$"
fi fi
echo "SEARCH STRING: $search_string"
# The funny sed command here is from https://unix.stackexchange.com/a/235016/445931 # The funny sed command here is from https://unix.stackexchange.com/a/235016/445931
# The reason this is needed is because the "Starting iocInit" message seems to be threaded # The reason this is needed is because the "Starting iocInit" message seems to be threaded
# differently than the regular flow of output and sometimes will separate the strings that # differently than the regular flow of output and sometimes will separate the strings that
# we are looking for. If we simply cut it out then we seem to be able to more consistently # we are looking for. If we simply cut it out then we seem to be able to more consistently
# get meaningful tests. # get meaningful tests.
#echo exit | eval iocsh.bash "$iocsh_args" |
# sed -e '1 h; 2,$ H; $! d; g' -e 's/Starting iocInit\niocRun: All initialization complete\n//' |
# $__SEARCH_COMMAND__ "${search_string}"
echo exit | eval iocsh.bash "$iocsh_args" | echo exit | eval iocsh.bash "$iocsh_args" |
sed -e '1 h; 2,$ H; $! d; g' -e 's/Starting iocInit\niocRun: All initialization complete\n//' | sed -e '1 h; 2,$ H; $! d; g' -e 's/Starting iocInit\niocRun: All initialization complete\n//'
$__SEARCH_COMMAND__ "${search_string}"
} }
function format_output { function format_output {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment