aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bbot/agent.cxx6
-rw-r--r--tests/agent/testscript20
2 files changed, 14 insertions, 12 deletions
diff --git a/bbot/agent.cxx b/bbot/agent.cxx
index 60d59e6..2df96e6 100644
--- a/bbot/agent.cxx
+++ b/bbot/agent.cxx
@@ -781,9 +781,13 @@ try
// Controller URLs.
//
- if (argc < 2 && !ops.fake_request_specified ())
+ if (argc < 2 &&
+ !ops.dump_machines () &&
+ !ops.fake_request_specified ())
+ {
fail << "controller url expected" <<
info << "run " << argv[0] << " --help for details";
+ }
strings controllers;
diff --git a/tests/agent/testscript b/tests/agent/testscript
index 6e9d319..c5396b4 100644
--- a/tests/agent/testscript
+++ b/tests/agent/testscript
@@ -28,13 +28,12 @@ rm = $src_base/btrfs-rmdir /build/machines
test.options += --dump-machines --fake-bootstrap
m = /build/machines/default/linux-gcc
- u = https://example.org/?dummy
+$cp
: no-current-machine-symlink
:
- $* --toolchain-id 123 $u 2>>"EOE"
+ $* --toolchain-id 123 2>>"EOE"
trace: enumerate_machines: skipping $m/: no subvolume link
EOE
@@ -42,7 +41,7 @@ rm = $src_base/btrfs-rmdir /build/machines
: bootstrap
:
- $* --toolchain-id 123 $u >>EOO 2>>~"%EOE%d"
+ $* --toolchain-id 123 >>EOO 2>>~"%EOE%d"
: 1
id: linux-gcc-1.0
name: linux-gcc
@@ -57,7 +56,7 @@ rm = $src_base/btrfs-rmdir /build/machines
: re-bootstrap-machine
:
- $* --toolchain-id 123 $u >>EOO 2>>~"%EOE%d"
+ $* --toolchain-id 123 >>EOO 2>>~"%EOE%d"
: 1
id: linux-gcc-1.1
name: linux-gcc
@@ -72,7 +71,7 @@ rm = $src_base/btrfs-rmdir /build/machines
: re-bootstrap-toolchain
:
- $* --toolchain-id 124 $u >>EOO 2>>~"%EOE%d"
+ $* --toolchain-id 124 >>EOO 2>>~"%EOE%d"
: 1
id: linux-gcc-1.1
name: linux-gcc
@@ -89,7 +88,7 @@ rm = $src_base/btrfs-rmdir /build/machines
: re-bootstrap-bbot
:
- $* --toolchain-id 124 $u >>EOO 2>>~"%EOE%d"
+ $* --toolchain-id 124 >>EOO 2>>~"%EOE%d"
: 1
id: linux-gcc-1.1
name: linux-gcc
@@ -106,7 +105,7 @@ rm = $src_base/btrfs-rmdir /build/machines
: re-bootstrap-bbot-newer
:
- $* --toolchain-id 124 $u 2>>~"%EOE%d"
+ $* --toolchain-id 124 2>>~"%EOE%d"
%trace: enumerate_machines: btrfs subvolume snapshot $m/linux-gcc-1.1 $m/linux-gcc-default-\\.+%
trace: enumerate_machines: ignoring $m/linux-gcc-default/: old bbot
%trace: enumerate_machines: btrfs subvolume delete $m/linux-gcc-default-\\.+%
@@ -121,15 +120,14 @@ rm = $src_base/btrfs-rmdir /build/machines
test.options += --fake-bootstrap --fake-build --fake-request -
m = /build/machines/default/linux-gcc
- u = https://example.org/?dummy
+$cp
+ln -T -s linux-gcc-1.0 $m/linux-gcc-1
- +$* --dump-machines --verbose 1 $u >- # Bootstrap.
+ +$* --dump-machines --verbose 1 >- # Bootstrap.
: no-machine
:
- $* --dump-task $u <<EOI 2>>~"%EOE%d"
+ $* --dump-task <<EOI 2>>~"%EOE%d"
: 1
name: foo
version: 1.2.3
@@ -142,7 +140,7 @@ rm = $src_base/btrfs-rmdir /build/machines
: result
:
- $* --dump-result $u <<EOI >>EOO 2>>~"%EOE%d"
+ $* --dump-result <<EOI >>EOO 2>>~"%EOE%d"
: 1
name: foo
version: 1.2.3