"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unit/meta/test_meta.py" between
snapcraft-3.9.4.tar.gz and snapcraft-3.9.5.tar.gz

About: Snapcraft is a build and packaging tool that makes it easy to incorporate components from different sources and build technologies or solutions.

test_meta.py  (snapcraft-3.9.4):test_meta.py  (snapcraft-3.9.5)
skipping to change at line 338 skipping to change at line 338
_create_file(os.path.join(self.prime_dir, "foo"), executable=True) _create_file(os.path.join(self.prime_dir, "foo"), executable=True)
_create_file(os.path.join(self.prime_dir, "bar"), executable=True) _create_file(os.path.join(self.prime_dir, "bar"), executable=True)
y = self.generate_meta_yaml() y = self.generate_meta_yaml()
self.expectThat(y["apps"]["app"]["command"], Equals("foo")) self.expectThat(y["apps"]["app"]["command"], Equals("foo"))
self.expectThat( self.expectThat(
y["apps"]["app"]["command-chain"], y["apps"]["app"]["command-chain"],
Equals([os.path.join("snap", "command-chain", "snapcraft-runner"), " bar"]), Equals([os.path.join("snap", "command-chain", "snapcraft-runner"), " bar"]),
) )
self.assertThat(y["assumes"], Equals(["command-chain"]))
def test_adapter_assumes_command_chain(self):
self.config_data["apps"] = {"app": {"command": "foo"}}
_create_file(os.path.join(self.prime_dir, "foo"), executable=True)
y = self.generate_meta_yaml()
self.expectThat(y["apps"]["app"]["command"], Equals("foo"))
self.expectThat(
y["apps"]["app"]["command-chain"],
Equals([os.path.join("snap", "command-chain", "snapcraft-runner")]),
)
self.assertThat(y["assumes"], Equals(["command-chain"]))
class StopModeTestCase(CreateBaseTestCase): class StopModeTestCase(CreateBaseTestCase):
stop_modes = [ stop_modes = [
"sigterm", "sigterm",
"sigterm-all", "sigterm-all",
"sighup", "sighup",
"sighup-all", "sighup-all",
"sigusr1", "sigusr1",
"sigusr1-all", "sigusr1-all",
 End of changes. 1 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)