Commit fcd01882 authored by Antonio Terceiro's avatar Antonio Terceiro

debci collector: make sure a single file is used as exitcode

When the test artifacts contained a file that ended with 'exitcode',
the collector would break in a horrible way.
parent 2ad7468e
......@@ -20,7 +20,7 @@ debci_base_dir=$(readlink -f $(dirname $(readlink -f $0))/..)
. $debci_base_dir/lib/
write_results() {
local exitcode_file=$(tar xzfv - -C "$debci_data_basedir" | grep 'exitcode$')
local exitcode_file=$(tar xzfv - -C "$debci_data_basedir" | grep '^autopkgtest-incoming/[^/]\+/[^/]\+/[^/]\+/[^/]\+/[^/]\+/exitcode$')
local duration_file=${exitcode_file%%/exitcode}/duration
local package=$(basename $(dirname $(dirname $exitcode_file)))
local arch=$(basename $(dirname $(dirname $(dirname $(dirname $exitcode_file)))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment