Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stdout arg fix
  • Loading branch information
djphoenix committed Nov 20, 2015
1 parent b00dc9d commit 6372a5a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions llvm-cov-xml/main.swift
Expand Up @@ -165,10 +165,13 @@ func process_args() {
print_usage()
exit(EXIT_FAILURE)
}
var out = resolvePath(args[idx+1], from: fileManager.currentDirectoryPath)
var isDir: ObjCBool = false
if fileManager.fileExistsAtPath(out, isDirectory: &isDir) && isDir {
out = (out as NSString).stringByAppendingPathComponent("coverage.xml")
var out = args[idx+1]
if out != "-" {
out = resolvePath(args[idx+1], from: fileManager.currentDirectoryPath)
var isDir: ObjCBool = false
if fileManager.fileExistsAtPath(out, isDirectory: &isDir) && isDir {
out = (out as NSString).stringByAppendingPathComponent("coverage.xml")
}
}
config.output = out
args.removeAtIndex(idx+1)
Expand Down

0 comments on commit 6372a5a

Please sign in to comment.