Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(507)

Issue 7301080: testing/repo: remove symlinks from dummy charm (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by jameinel
Modified:
11 years, 1 month ago
Reviewers:
mp+147877
Visibility:
Public.

Description

testing/repo: remove symlinks from dummy charm This changes the testing charms so that they don't have a symlink in the source tree. For tests that want to test bundling symlinks, we just add them on-demand in the newly created bundle dir. Coupled with the 'no-symlinks' patch, this removes all symlinks from the source tree, allowing us to checkout lp:juju-core on platforms that don't support them. https://code.launchpad.net/~jameinel/juju-core/charm-symlinks/+merge/147877 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : testing/repo: remove symlinks from dummy charm #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -13 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M charm/bundle_test.go View 1 2 chunks +9 lines, -3 lines 0 comments Download
M charm/dir_test.go View 1 2 chunks +21 lines, -10 lines 0 comments Download

Messages

Total messages: 5
jameinel
Please take a look.
11 years, 2 months ago (2013-02-12 10:25:22 UTC) #1
dimitern
LGTM. I'll merge your changes, if this lands before my branch about bug #864164.
11 years, 2 months ago (2013-02-13 10:50:31 UTC) #2
gz
LGTM https://codereview.appspot.com/7301080/diff/1/charm/bundle_test.go File charm/bundle_test.go (right): https://codereview.appspot.com/7301080/diff/1/charm/bundle_test.go#newcode81 charm/bundle_test.go:81: var haveSymlinks = true Seems this should either ...
11 years, 2 months ago (2013-02-13 11:45:05 UTC) #3
dave_cheney.net
LGTM with minor comments. https://codereview.appspot.com/7301080/diff/1/charm/bundle_test.go File charm/bundle_test.go (right): https://codereview.appspot.com/7301080/diff/1/charm/bundle_test.go#newcode77 charm/bundle_test.go:77: if err != nil { ...
11 years, 2 months ago (2013-02-17 22:34:12 UTC) #4
jameinel
11 years, 2 months ago (2013-02-19 07:50:44 UTC) #5
*** Submitted:

testing/repo: remove symlinks from dummy charm

This changes the testing charms so that they don't have a symlink
in the source tree. For tests that want to test bundling symlinks,
we just add them on-demand in the newly created bundle dir.

Coupled with the 'no-symlinks' patch, this removes all symlinks
from the source tree, allowing us to checkout lp:juju-core on
platforms that don't support them.

R=dimitern, gz, dfc
CC=
https://codereview.appspot.com/7301080

https://codereview.appspot.com/7301080/diff/1/charm/dir_test.go
File charm/dir_test.go (right):

https://codereview.appspot.com/7301080/diff/1/charm/dir_test.go#newcode39
charm/dir_test.go:39: var haveSymlinks = true
It wasn't specifically about Windows, though that is the platform where this
becomes necessary. It also happens if you were doing something like running the
test suite inside of a fat32 partition, etc.

Certainly we could do it with an OS test, but it made the most sense to me to
try to create a symlink, if you can't, then don't do the symlink portion of the
test.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b