daandemeyer / rpms / systemd

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