From 472d6d0e49c0114f46ff31267d09acdbf9fba421 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 24 Nov 2022 18:09:35 +0300 Subject: Use operation name as a buildscript name if unable to deduce --- libbuild2/build/script/parser+diag.test.testscript | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'libbuild2/build/script/parser+diag.test.testscript') diff --git a/libbuild2/build/script/parser+diag.test.testscript b/libbuild2/build/script/parser+diag.test.testscript index a720fe2..504c9a4 100644 --- a/libbuild2/build/script/parser+diag.test.testscript +++ b/libbuild2/build/script/parser+diag.test.testscript @@ -19,6 +19,14 @@ $* <>EOO name: echo EOO +: name-operation +: +$* <>EOO + a = 'b' + EOI + name: update + EOO + : preamble : { @@ -141,16 +149,6 @@ $* <>EOO info: consider specifying it explicitly with the 'diag' recipe attribute info: or provide custom low-verbosity diagnostics with the 'diag' builtin EOE - - : none - : - $* <>EOE != 0 - a = 'b' - EOI - buildfile:11:1: error: unable to deduce low-verbosity script diagnostics name - info: consider specifying it explicitly with the 'diag' recipe attribute - info: or provide custom low-verbosity diagnostics with the 'diag' builtin - EOE } : inside-if -- cgit v1.1