depot_autopilot.run: error message on empty tar

When wrongly invoking the run script by specifying a skipped test
as its only TEST_PKGS argument, the run script fails due to a wrong
tar argument order. Let's better reflect this condition to the user
ahead of invoking tar.
This commit is contained in:
Norman Feske 2024-03-18 12:32:02 +01:00 committed by Christian Helmuth
parent 1b313df419
commit 72a575a5f9

View File

@ -85,6 +85,11 @@ proc autopilot_create_tar_from_depot_binaries { archive_path args } {
check_for_missing_depot_archives
if {[llength $content] == 0} {
puts stderr "Error: no content for depot.tar"
exit -1
}
eval "exec tar cf $archive_path -T /dev/null -C [depot_dir] [lsort -unique $content]"
}