about summary refs log tree commit diff
path: root/src/etc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-24 06:06:33 -0800
committerbors <bors@rust-lang.org>2014-01-24 06:06:33 -0800
commita5ab960d2e443f61511b19ad80221d1f99fd0692 (patch)
treef47ca2e39f6c232875819f9c996a4b084de61bc0 /src/etc
parent5675f2813f86ccc6d94251f447661939d9ac3a63 (diff)
parent51103c89d06953fc534572723f030b292fabe73d (diff)
downloadrust-a5ab960d2e443f61511b19ad80221d1f99fd0692.tar.gz
rust-a5ab960d2e443f61511b19ad80221d1f99fd0692.zip
auto merge of #11750 : bnoordhuis/rust/follow-rustc-symlink, r=thestinger
Before this commit, rustc looked in `dirname $0`/../lib for libraries
but that doesn't work when rustc is invoked through a symlink.

This commit makes rustc look in `dirname $(readlink $0)`/../lib, i.e.
it first canonicalizes the symlink before walking up the directory tree.

Fixes #3632.
Diffstat (limited to 'src/etc')
-rwxr-xr-xsrc/etc/check-summary.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/check-summary.py b/src/etc/check-summary.py
index de777c99729..dbff82d2b6b 100755
--- a/src/etc/check-summary.py
+++ b/src/etc/check-summary.py
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 # xfail-license
 
+import glob
 import sys
 
 if __name__ == '__main__':
@@ -24,7 +25,8 @@ if __name__ == '__main__':
     def count(t):
         return sum(map(lambda (f, s): len(s.get(t, [])), summaries))
     logfiles = sys.argv[1:]
-    map(summarise, logfiles)
+    for files in map(glob.glob, logfiles):
+        map(summarise, files)
     ok = count('ok')
     failed = count('failed')
     ignored = count('ignored')