All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Wood <michael.g.wood@intel.com>
To: toaster@yoctoproject.org
Subject: Re: [review-request] adamian/bug_fixes
Date: Wed, 29 Jul 2015 12:37:10 +0100	[thread overview]
Message-ID: <55B8BAE6.8070703@intel.com> (raw)
In-Reply-To: <D1DBDDA7.60B70%belen.barros.pena@intel.com>

On 27/07/15 13:08, Barros Pena, Belen wrote:
>
> On 27/07/2015 12:45, "Damian, Alexandru" <alexandru.damian@intel.com>
> wrote:
>
>> Re-pushed the same branch with IN PROGRESS fixed applied to both build
>> pages.
> Now it seems to be working in both places.
>
> Thanks!
>
> Belén
>
>>
>> Cheers,
>> Alex
>>
>>
>> On Mon, Jul 27, 2015 at 12:08 PM, Barros Pena, Belen
>> <belen.barros.pena@intel.com> wrote:
>>
>> Thanks for the poky-based branch Alex! A couple of comments below.
>>
>> On 24/07/2015 18:10, "toaster-bounces@yoctoproject.org on behalf of
>> Damian, Alexandru" <toaster-bounces@yoctoproject.org on behalf of
>> alexandru.damian@intel.com> wrote:
>>
>>>
>>> ​Hi,
>>>
>>>
>>> This is a review request for adamian/bug_fixes
>>> <https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=adamian/b
>>> u
>>> g_fixes>​
>>>
>>>
>>> ​It contains a previously submitted patchset, and a fix for #7995
>>
>> bc4ea83f93657d876b43b751549735b683c33040
>>
>> The builds in progress no longer show in the all builds page, but they
>> still show in the project builds page.
>>
>> On the bright side, I know that because I can now reach the project builds
>> page :) so the patch for 7995 works for me.
>>
>> Thanks!
>>
>> Belén
>>
>>>
>>> Please review and submit when possible.
>>>
>>>
>>> Cheers,
>>> Alex​
>>>
>>>
>>>
>>>
>>> --
>>> Alex Damian
>>> Yocto Project
>>>
>>> SSG / OTC
>>>
>>>
>>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> -- 
>> Alex Damian
>> Yocto Project
>>
>> SSG / OTC
>>
>>
>>


Can you squash these two: ba72e1666796987bdec1bbf34d31a41ecf605936 and 
9cce8032cbb70f0047f5819127c0c220963f2ce2



a125f3ab34a82eb684c46d5f01ee3544535ab5f4



diff --git a/lib/toaster/bldcontrol/management/commands/checksettings.py b/lib/toaster/bldcontrol/management/commands/checksettings.py
index 3858b9e..b2631c4 100644
--- a/lib/toaster/bldcontrol/management/commands/checksettings.py
+++ b/lib/toaster/bldcontrol/management/commands/checksettings.py
@@ -99,10 +99,11 @@ class Command(NoArgsCommand):
  
          # find configuration files
          config_files = []
+        selected_dirs = []
          for dirname in self._recursive_list_directories(be.sourcedir,2):
              if os.path.exists(os.path.join(dirname, ".templateconf")):
                  import subprocess
-                proc = subprocess.Popen('bash -c ". '+os.path.join(dirname, ".templateconf")+r'; echo \"$TEMPLATECONF\""', shell=True, stdout=subprocess.PIPE)
+                proc = subprocess.Popen('bash -c ". '+os.path.join(dirname, ".templateconf")+r'; echo \"\$TEMPLATECONF\""', shell=True, stdout=subprocess.PIPE)
                  conffilepath, stderroroutput = proc.communicate()
                  proc.wait()
                  if proc.returncode != 0:
@@ -114,6 +115,15 @@ class Command(NoArgsCommand):
                      continue
                  if os.path.exists(candidatefilepath):
                      config_files.append(candidatefilepath)
+                    selected_dirs.append(dirname)
+
+        for dirname in self._recursive_list_directories(be.sourcedir,2):


This for loop seems to be duplicated from the one above it 
checksettings.py (line 103 and 120) can they not be combined?
However do we actually need to do all this searching? To simplify this 
couldn't we find "meta-yocto/conf/toasterconf.json" in the poky dir, if 
that doesn't exist then try the openembedded one, if that doesn't exist, 
ask? if people want to specify their own config we could have a -config 
option to bin/toaster.

Thanks,

Michael









  reply	other threads:[~2015-07-29 11:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24 17:10 [review-request] adamian/bug_fixes Damian, Alexandru
2015-07-27 10:44 ` Barros Pena, Belen
2015-07-27 10:49   ` Damian, Alexandru
2015-07-27 11:08 ` Barros Pena, Belen
2015-07-27 11:45   ` Damian, Alexandru
2015-07-27 12:08     ` Barros Pena, Belen
2015-07-29 11:37       ` Michael Wood [this message]
2015-08-13 16:36         ` Damian, Alexandru
2015-08-14 16:01           ` Michael Wood
2015-08-17 11:19             ` Damian, Alexandru
2015-08-18 16:39               ` Michael Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55B8BAE6.8070703@intel.com \
    --to=michael.g.wood@intel.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.