daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
bd1529
From 4fb6b699b3d69341093830e92838336c0dbd7ea9 Mon Sep 17 00:00:00 2001
bd1529
From: Yu Watanabe <watanabe.yu+github@gmail.com>
bd1529
Date: Tue, 19 Feb 2019 09:21:42 +0900
bd1529
Subject: [PATCH] test-udev: use proper semantics for too long line with
bd1529
 continuation
bd1529
bd1529
Follow-up for 1e797cf596df50a6bdd8cbf8e9b2467a3a934171.
bd1529
bd1529
(cherry picked from commit e37a5d90b0c624b95f8d0c3400288fec60417ec4)
bd1529
bd1529
Related: #1642728
bd1529
---
bd1529
 test/udev-test.pl | 7 ++++---
bd1529
 1 file changed, 4 insertions(+), 3 deletions(-)
bd1529
bd1529
diff --git a/test/udev-test.pl b/test/udev-test.pl
bd1529
index 3a50694fa9..58b5dc85e1 100755
bd1529
--- a/test/udev-test.pl
bd1529
+++ b/test/udev-test.pl
bd1529
@@ -39,10 +39,11 @@ for (my $i = 1; $i <= 10000; ++$i) {
bd1529
         $rules_10k_tags .= 'KERNEL=="sda", TAG+="test' . $i . "\"\n";
bd1529
 }
bd1529
 
bd1529
-my $rules_10k_tags_continuation = "";
bd1529
-for (my $i = 1; $i <= 10000; ++$i) {
bd1529
-        $rules_10k_tags_continuation .= 'KERNEL=="sda", TAG+="test' . $i . "\"\\\n";
bd1529
+my $rules_10k_tags_continuation = "KERNEL==\"sda\", \\\n";
bd1529
+for (my $i = 1; $i < 10000; ++$i) {
bd1529
+        $rules_10k_tags_continuation .= 'TAG+="test' . $i . "\",\\\n";
bd1529
 }
bd1529
+$rules_10k_tags_continuation .= "TAG+=\"test10000\"\\n";
bd1529
 
bd1529
 my @tests = (
bd1529
         {