Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add support for mesa libraries. #204
Conversation
elopio
reviewed
Jan 6, 2016
| + | ||
| + tempdirObj = tempfile.TemporaryDirectory() | ||
| + self.addCleanup(tempdirObj.cleanup) | ||
| + os.chdir(tempdirObj.name) |
elopio
Jan 6, 2016
Member
We already have this on the base setup, when this test runs the cwd is already a tempdir that will be deleted. Tha path to that dir is in self.path.
https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/tests/__init__.py#L33
kyrofa
Jan 6, 2016
Member
Ah good find! I was copying what was already there-- I've fixed the rest of the tests as well.
elopio
reviewed
Jan 6, 2016
| + self.addCleanup(tempdirObj.cleanup) | ||
| + os.chdir(tempdirObj.name) | ||
| + with open('icon.svg', 'w') as icon: | ||
| + icon.write('<svg />') |
elopio
Jan 6, 2016
Member
aren't the icons optional now? I can't remember if that landed or not yet.
elopio
Jan 6, 2016
Member
ah, yes it is because you don't have it in your example! So this can be removed.
|
lgtm. Maybe, I would move the library handling to a new module. snapcraft/libraries? Thanks for the example! |
|
@elopio alright I moved it into |
|
I re triggered the examples test run |
sergiusens
reviewed
Jan 6, 2016
| @@ -0,0 +1,50 @@ | ||
| +# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- | ||
| +# | ||
| +# Copyright (C) 2015 Canonical Ltd |
sergiusens
reviewed
Jan 6, 2016
| @@ -0,0 +1,45 @@ | ||
| +# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- | ||
| +# | ||
| +# Copyright (C) 2015 Canonical Ltd |
sergiusens
reviewed
Jan 6, 2016
| @@ -317,7 +300,6 @@ def test_config_expands_filesets(self, mock_loadPlugin): | ||
| version: "1" | ||
| summary: test | ||
| description: test | ||
| -icon: my-icon.png |
kyrofa
Jan 6, 2016
Member
They could be. These small refactors were to simply make the tests consistent with the ones I was adding rather than being consistent the other way and adding more cruft.
|
What wishlist bug is this closing? |
|
@sergiusens heh. Fixed |
kyrofa
referenced this pull request
Jan 6, 2016
Merged
Update debian/changelog for the 1.0 release. #198
|
|
kyrofa commentedJan 6, 2016
Currently Snapcraft adds only a few standard paths to LD_LIBRARY_PATH. This PR expands that to include paths used by mesa packages.
This will need to be backported to 1.x once approved.
Resolves LP: #1531620