dcavalca / rpms / systemd

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