~zyga/checkbox/fix-1297256

« back to all changes in this revision

Viewing changes to plainbox/plainbox/test_provider_manager.py

  • Committer: Daniel Manrique
  • Author(s): Zygmunt Krynicki
  • Date: 2014-03-31 13:11:03 UTC
  • mfrom: (2849.1.1 launchpad/fix-1297255)
  • Revision ID: daniel_manrique-20140331131103-7h5etbtc4wfojoka
"automatic merge by tarmac [r=sylvain-pineau][bug=1297255][author=zkrynicki]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
        self.assertTarballContent(
192
192
            tarball, "2014.com.example.test-1.0/bin/test.sh",
193
193
            "#!/bin/sh\n:\n")
 
194
        self.assertTarballContent(
 
195
            tarball, "2014.com.example.test-1.0/src/hello.c",
 
196
            "int main() { return 0; }\n")
194
197
 
195
198
    def test_sdist(self):
196
199
        """
379
382
            print("#!/bin/sh", file=stream)
380
383
            print(":", file=stream)
381
384
        os.chmod(filename, 0o755)
 
385
        os.mkdir(os.path.join(tmpdir, "src"))
 
386
        filename = os.path.join(tmpdir, "src", "hello.c")
 
387
        with open(filename, "wt", encoding='UTF-8') as stream:
 
388
            print("int main() { return 0; }", file=stream)
382
389
        definition = Provider1Definition()
383
390
        definition.location = tmpdir
384
391
        definition.name = "2014.com.example:test"