aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-03-16 01:20:06 +0800
committerchriseth <chris@ethereum.org>2018-03-16 01:20:23 +0800
commitea8d5f8afc8cdd886be70efc8f49163af0675014 (patch)
treee1bc40a0204a28a8f963770631a742c780d06877 /test
parent9e1095608d265ac941afbf1e4ed4c79d63a15926 (diff)
downloaddexon-solidity-ea8d5f8afc8cdd886be70efc8f49163af0675014.tar.gz
dexon-solidity-ea8d5f8afc8cdd886be70efc8f49163af0675014.tar.zst
dexon-solidity-ea8d5f8afc8cdd886be70efc8f49163af0675014.zip
Use /usr/bin/editor if exists.
Diffstat (limited to 'test')
-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 668481cf..b71f14b9 100644
--- a/test/tools/isoltest.cpp
+++ b/test/tools/isoltest.cpp
@@ -263,6 +263,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;