Message ID | cover.1481142664.git.anibal.limon@linux.intel.com |
---|---|
State | New |
Headers | show |
On 7 December 2016 at 20:32, Aníbal Limón <anibal.limon@linux.intel.com> wrote: > The d variable references the test data into a test context, so > makes a more sense to call it: td (test data). > Can you squash this into the commits where they are introduced (don't need to see your working, etc). Ross -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Can you squash this into the commit that added core/utils/path. Ross On 7 December 2016 at 20:32, Aníbal Limón <anibal.limon@linux.intel.com> wrote: > Checks if path exists before try to remove of avoid exception. > > Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> > --- > meta/lib/oeqa/core/utils/path.py | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/meta/lib/oeqa/core/utils/path.py b/meta/lib/oeqa/core/utils/ > path.py > index cb06523..a21caad 100644 > --- a/meta/lib/oeqa/core/utils/path.py > +++ b/meta/lib/oeqa/core/utils/path.py > @@ -12,3 +12,8 @@ def findFile(file_name, directory): > if file_name in f: > return os.path.join(r, file_name) > return None > + > +def remove_safe(path): > + if os.path.exists(path): > + os.remove(path) > + > -- > 2.1.4 > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Sure, sending v3. alimon On 12/08/2016 08:41 AM, Burton, Ross wrote: > On 7 December 2016 at 20:32, Aníbal Limón <anibal.limon@linux.intel.com> > wrote: > >> The d variable references the test data into a test context, so >> makes a more sense to call it: td (test data). >> > > Can you squash this into the commits where they are introduced (don't need > to see your working, etc). > > Ross > -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core