Shebang should be the first line of the backup/restore scripts
in case where the import returns empty line
Related-Prod: PROD-34850
SFDC: #3117002
Change-Id: I9916e394f84437cdf5d640ce0985be8f69db327e
diff --git a/tests/test-requirements.txt b/tests/test-requirements.txt
new file mode 100644
index 0000000..bc7dc7f
--- /dev/null
+++ b/tests/test-requirements.txt
@@ -0,0 +1,4 @@
+jsonschema
+reno
+setuptools<45.0.0
+msgpack<1.0.0
diff --git a/xtrabackup/files/innobackupex-client-restore-call.sh b/xtrabackup/files/innobackupex-client-restore-call.sh
index e318d5b..58d66e4 100644
--- a/xtrabackup/files/innobackupex-client-restore-call.sh
+++ b/xtrabackup/files/innobackupex-client-restore-call.sh
@@ -1,4 +1,4 @@
-{%- from "xtrabackup/map.jinja" import client with context %}
+{%- from "xtrabackup/map.jinja" import client with context -%}
#!/bin/bash
set -eo pipefail
# Purpuse of this script is to locally prepare appropriate backup to restore from local or remote location
diff --git a/xtrabackup/files/innobackupex-client-restore.sh b/xtrabackup/files/innobackupex-client-restore.sh
index 5d8bc4b..501e8d9 100644
--- a/xtrabackup/files/innobackupex-client-restore.sh
+++ b/xtrabackup/files/innobackupex-client-restore.sh
@@ -1,5 +1,5 @@
-{%- from "xtrabackup/map.jinja" import client with context %}
-{%- from "xtrabackup/map.jinja" import server with context %}
+{%- from "xtrabackup/map.jinja" import client with context -%}
+{%- from "xtrabackup/map.jinja" import server with context -%}
#!/bin/bash
#
# Script to prepare and restore full and incremental backups created with innobackupex-runner.
diff --git a/xtrabackup/files/innobackupex-server-restore-call.sh b/xtrabackup/files/innobackupex-server-restore-call.sh
index 313b823..ca0a299 100644
--- a/xtrabackup/files/innobackupex-server-restore-call.sh
+++ b/xtrabackup/files/innobackupex-server-restore-call.sh
@@ -1,4 +1,4 @@
-{%- from "xtrabackup/map.jinja" import server with context %}
+{%- from "xtrabackup/map.jinja" import server with context -%}
#!/bin/bash
# This script returns appropriate backup that client will restore
diff --git a/xtrabackup/files/innobackupex-server-runner.sh b/xtrabackup/files/innobackupex-server-runner.sh
index 5f9893d..d210dd6 100644
--- a/xtrabackup/files/innobackupex-server-runner.sh
+++ b/xtrabackup/files/innobackupex-server-runner.sh
@@ -1,4 +1,4 @@
-{%- from "xtrabackup/map.jinja" import server with context %}
+{%- from "xtrabackup/map.jinja" import server with context -%}
#!/bin/bash
# The purpose of this script is to clean up unnecesary backups on a backup storage node (on xtrabackup server node)