aboutsummaryrefslogtreecommitdiffstats
path: root/test/tools
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-03-21 23:28:21 +0800
committerGitHub <noreply@github.com>2018-03-21 23:28:21 +0800
commit8fd53c1c030b45282af3ebc80af72e17cab1d6d8 (patch)
tree53f91c3451d87216d864acc4a909921e6b6afec6 /test/tools
parentcddb549d2ccd11de36a8f9626eb9cd4a4c84f74c (diff)
parentea8d5f8afc8cdd886be70efc8f49163af0675014 (diff)
downloaddexon-solidity-8fd53c1c030b45282af3ebc80af72e17cab1d6d8.tar.gz
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.cpp2
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;