Skip to content

Commit fc10005

Browse files
committed
catch bad symlink in assert
1 parent 625d0bb commit fc10005

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/local/butler/common.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _get_clusterfuzz_config_commit_sha():
9393

9494
def _compute_revision(timestamp, is_staging=False):
9595
"""Return a source code revision.
96-
96+
9797
This revision contains the timestamp, git-sha, user, config git-sha, and
9898
appengine release (prod or staging). The ordinality of revision is crucial
9999
for updating source code. Later revision *must* be greater than earlier
@@ -372,8 +372,7 @@ def symlink(src, target):
372372
else:
373373
os.symlink(src, target)
374374

375-
assert os.path.lexists(
376-
target), f'Failed to create {target} symlink for {src}.'
375+
assert os.path.exists(target), f'Failed to create {target} symlink for {src}.'
377376

378377
print(f'Created symlink: source: {src}, target {target}.')
379378

0 commit comments

Comments
 (0)