From 6a27f9201718a36d75ceeb1335f1cfcfeaf945b9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 18 Oct 2007 19:14:02 +0100 Subject: [PATCH] * adt-testreport-runloop: fix handling of test_classes (was xoptslist) --- debian/changelog | 1 + runner/adt-testreport-runloop | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 runner/adt-testreport-runloop diff --git a/debian/changelog b/debian/changelog index 7fa8c88..311e011 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,7 @@ autopkgtest (1.1.0~) unstable; urgency=low * adt-testreport-cronjob: renamed from hosts/cadmium/cronjob * adt-testreport-runloop: copyright message. * cfg and adt-testreport-runloop: do not cd in config files. + * adt-testreport-runloop: fix handling of test_classes (was xoptslist) * hosts/cadmium/*, debian/rules: onepackage_config renamed to cfg. -- Ian Jackson Thu, 18 Oct 2007 17:17:31 +0100 diff --git a/runner/adt-testreport-runloop b/runner/adt-testreport-runloop old mode 100644 new mode 100755 index 97f5bb7..bda8da4 --- a/runner/adt-testreport-runloop +++ b/runner/adt-testreport-runloop @@ -45,7 +45,7 @@ else : ${testbed_check_path:=/dev/null} fi -if [ "x$test_classes" = x]; then +if [ "x$test_classes" = x ]; then : ${architecture:=`dpkg --print-architecture`} test_classes="source $distro, target=source : binary $distro, target=binary-$architecture" fi @@ -70,9 +70,12 @@ while ($go_anyway || test -f go) && test $test_count -lt $max_test_count; do xopts="${test_classes%%:*}" xopts_opts="${xopts#*,}" - test_classes="${test_classes#*:}:$xopts" printf "considering (%s) " "$xopts_opts" + case "$test_classes" in + *:*) test_classes="${test_classes#*:}:$xopts" ;; + esac + anybroken=false for x in ${xopts%%,*}; do if test -f "stop-$x"; then -- 2.30.2