diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-03-21 23:28:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-21 23:28:21 +0800 |
commit | 8fd53c1c030b45282af3ebc80af72e17cab1d6d8 (patch) | |
tree | 53f91c3451d87216d864acc4a909921e6b6afec6 /test/tools | |
parent | cddb549d2ccd11de36a8f9626eb9cd4a4c84f74c (diff) | |
parent | ea8d5f8afc8cdd886be70efc8f49163af0675014 (diff) | |
download | dexon-solidity-8fd53c1c030b45282af3ebc80af72e17cab1d6d8.tar dexon-solidity-8fd53c1c030b45282af3ebc80af72e17cab1d6d8.tar.gz dexon-solidity-8fd53c1c030b45282af3ebc80af72e17cab1d6d8.tar.bz2 dexon-solidity-8fd53c1c030b45282af3ebc80af72e17cab1d6d8.tar.lz dexon-solidity-8fd53c1c030b45282af3ebc80af72e17cab1d6d8.tar.xz dexon-solidity-8fd53c1c030b45282af3ebc80af72e17cab1d6d8.tar.zst dexon-solidity-8fd53c1c030b45282af3ebc80af72e17cab1d6d8.zip |
Merge pull request #3744 from ethereum/useUsrBinEditor
Use /usr/bin/editor if exists.
Diffstat (limited to 'test/tools')
-rw-r--r-- | test/tools/isoltest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/tools/isoltest.cpp b/test/tools/isoltest.cpp index 5ad3bfb5..5efec421 100644 --- a/test/tools/isoltest.cpp +++ b/test/tools/isoltest.cpp @@ -265,6 +265,8 @@ int main(int argc, char *argv[]) { if (getenv("EDITOR")) SyntaxTestTool::editor = getenv("EDITOR"); + else if (fs::exists("/usr/bin/editor")) + SyntaxTestTool::editor = "/usr/bin/editor"; fs::path testPath; bool formatted = true; |