[coverage] Used gettempdir() instead of hard-coding /tmp

This commit is contained in:
Harlan Haskins
2016-02-01 16:03:57 -08:00
parent dea48f43dc
commit eb9fb9cde9

View File

@@ -18,6 +18,7 @@
from __future__ import print_function
import sys
import argparse
import tempfile
from multiprocessing import Lock
import runner
@@ -43,12 +44,13 @@ if __name__ == "__main__":
action="store_true")
start.add_argument("-o", "--output-dir",
help="The directory to write the PID file and final profdata file.",
default="/tmp")
default=tempfile.gettempdir())
start.add_argument("--no-remove",
action="store_true",
help="Don't remove profraw files after merging them.")
start.set_defaults(func=runner.start_server)
stop = subparsers.add_parser("stop")
stop.set_defaults(func=runner.stop_server)