Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH][autobuild] autobuild-run: introduce "--http-url" option for submition URL
@ 2016-10-22 13:27 Vlad Zakharov
  2017-02-06 17:50 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Vlad Zakharov @ 2016-10-22 13:27 UTC (permalink / raw)
  To: buildroot

This commit introduces "--http-url" option.
Described option is used to pass URL of the resourse to submit the
results of the script.

Default value refers to standard buildroot sumbition URL:
http://autobuild.buildroot.org/submit/

Such update allows users to submit ther results not only to
standard buildroot autobuild resource but also somewhere
else.

Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
---
 scripts/autobuild-run | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/autobuild-run b/scripts/autobuild-run
index 33a0481..7ba10bd 100755
--- a/scripts/autobuild-run
+++ b/scripts/autobuild-run
@@ -66,6 +66,7 @@ defaults = {
     '--make-opts': '',
     '--nice': 0,
     '--pid-file': '/tmp/buildroot-autobuild.pid',
+    '--http-url': 'http://autobuild.buildroot.org/submit/',
 }
 
 doc = """autobuild-run - run Buildroot autobuilder
@@ -83,6 +84,8 @@ Options:
                                  Defaults to %(--nice)s.
   -s, --submitter SUBMITTER      name/machine of submitter
                                  Defaults to %(--submitter)s.
+  --http-url URL                 URL of resource to submit your results.
+                                 Defaults to $(--http-url)s.
   --http-login LOGIN             username to send results with
                                  Not set by default.
   --http-password PASSWORD       password to send results with (for security
@@ -755,7 +758,7 @@ def send_results(result, **kwargs):
                                "-H", "Expect:",
                                "-F", "uploadedfile=@%s" % os.path.join(outputdir, "results.tar.bz2"),
                                "-F", "uploadsubmit=1",
-                               "http://autobuild.buildroot.org/submit/"],
+                               kwargs['http_url']],
                               stdout=log, stderr=log)
         if ret != 0:
             log_write(log, "INFO: results could not be submitted, %d" % ret)
@@ -900,6 +903,7 @@ def main():
                 instance = i,
                 njobs = args['--njobs'],
                 sysinfo = sysinfo,
+                http_url = args['--http-url'],
                 http_login = args['--http-login'],
                 http_password = args['--http-password'],
                 submitter = args['--submitter'],
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH][autobuild] autobuild-run: introduce "--http-url" option for submition URL
  2016-10-22 13:27 [Buildroot] [PATCH][autobuild] autobuild-run: introduce "--http-url" option for submition URL Vlad Zakharov
@ 2017-02-06 17:50 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-02-06 17:50 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 22 Oct 2016 16:27:15 +0300, Vlad Zakharov wrote:
> This commit introduces "--http-url" option.
> Described option is used to pass URL of the resourse to submit the
> results of the script.
> 
> Default value refers to standard buildroot sumbition URL:
> http://autobuild.buildroot.org/submit/
> 
> Such update allows users to submit ther results not only to
> standard buildroot autobuild resource but also somewhere
> else.
> 
> Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
> ---
>  scripts/autobuild-run | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-06 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-22 13:27 [Buildroot] [PATCH][autobuild] autobuild-run: introduce "--http-url" option for submition URL Vlad Zakharov
2017-02-06 17:50 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox