Skip to contentSkip to conversation

autobuild-run: introduce "--http-url" option for submition URL

PATCH New Vlad Zakharov 2 participants 2 messages Oct 22, 2016 – Feb 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autobuild-run: introduce "--http-url" option for submition URL

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.

---
 scripts/autobuild-run | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
scripts/autobuild-run +5 -1
index 33a0481..7ba10bd 100755
@@ -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'],
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 autobuild-run: introduce "--http-url" option for submition URL

Hello,

Quoted 7 lines · Vlad Zakharov

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/

Quoted 8 lines

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

---
 scripts/autobuild-run | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

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