diff --git a/test/box/gh-4703-on_shutdown-bug.result b/test/box/gh-4703-on_shutdown-bug.result
index 7c1aae2ba537f02ea2aff2792e4324363f8fc652..75118373f97bec517558ba35facc66d2b8e7471f 100644
--- a/test/box/gh-4703-on_shutdown-bug.result
+++ b/test/box/gh-4703-on_shutdown-bug.result
@@ -20,9 +20,10 @@ test_run:cmd("setopt delimiter ';'");
  | ---
  | - true
  | ...
+-- Extra \n is required on openSUSE.
 on_shutdown_cmd = "box.ctl.on_shutdown(function() local fio = require('fio') "..
                    "fio.open('"..file_name.."', "..
-                   "{'O_CREAT', 'O_TRUNC', 'O_WRONLY'}, 777):close() end)";
+                   "{'O_CREAT', 'O_TRUNC', 'O_WRONLY'}, 777):close() end)\n";
  | ---
  | ...
 test_run:cmd("setopt delimiter ''");
diff --git a/test/box/gh-4703-on_shutdown-bug.test.lua b/test/box/gh-4703-on_shutdown-bug.test.lua
index 2b15277dbf412dce3d76441c87dc4dfe3cdab1b5..e06ef7a5eb8dbd52ba7700c03d50264e97472056 100755
--- a/test/box/gh-4703-on_shutdown-bug.test.lua
+++ b/test/box/gh-4703-on_shutdown-bug.test.lua
@@ -8,9 +8,10 @@ test_run = env.new()
 --
 file_name = "on_shutdown_triggered.txt"
 test_run:cmd("setopt delimiter ';'");
+-- Extra \n is required on openSUSE.
 on_shutdown_cmd = "box.ctl.on_shutdown(function() local fio = require('fio') "..
                    "fio.open('"..file_name.."', "..
-                   "{'O_CREAT', 'O_TRUNC', 'O_WRONLY'}, 777):close() end)";
+                   "{'O_CREAT', 'O_TRUNC', 'O_WRONLY'}, 777):close() end)\n";
 test_run:cmd("setopt delimiter ''");
 server = io.popen('tarantool -i', 'w')
 server:write(on_shutdown_cmd)