[test] Fix append_path in the empty case
authorFrancis Ricci <francisjricci@gmail.com>
Wed, 4 Oct 2017 17:30:28 +0000 (17:30 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Wed, 4 Oct 2017 17:30:28 +0000 (17:30 +0000)
commit954b94f5dfc16b999e96e21d96f6a3d91a1c9adc
tree426e938ae7b79a6ad14306cb7cbf3040460a03f8
parent6fb55716e9c77e716f4ac25abc84687eac29f848
[test] Fix append_path in the empty case

Summary:
normpath() was being called on an empty string and appended to
the environment variable in the case where the environment variable
was unset. This led to ":." being appended to the path, since
normpath() of an empty string is '.', presumably to represent cwd.

Reviewers: zturner, sqlbyme, modocache

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D38542

llvm-svn: 314915
llvm/utils/lit/lit/llvm/config.py