File: test-use-set-eu-in-run-qemu.patch

package info (click to toggle)
dracut 106-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,708 kB
  • sloc: sh: 24,384; ansic: 4,704; makefile: 315; perl: 186; python: 28; javascript: 19
file content (21 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Benjamin Drung <benjamin.drung@canonical.com>
Date: Mon, 10 Feb 2025 10:48:51 +0100
Subject: test: use "set -eu" in run-qemu

Forwarded: https://github.com/dracut-ng/dracut-ng/pull/1216
---
 test/run-qemu | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/run-qemu b/test/run-qemu
index a7b3e71..14a393b 100755
--- a/test/run-qemu
+++ b/test/run-qemu
@@ -1,6 +1,7 @@
 #!/usr/bin/env bash
 # Check which virtualization technology to use
 # We prefer kvm, kqemu, userspace in that order.
+set -eu
 
 export PATH=/usr/sbin:/usr/bin:/sbin:/bin
 ARCH="${ARCH-$(uname -m)}"