[SCM] ci-tooling packaging branch, master, updated. fbf5aa8a3766d136b67be6e57d05aa43e25b3519
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Mon Dec 7 09:12:51 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=fbf5aa8
The following commit has been merged in the master branch:
commit fbf5aa8a3766d136b67be6e57d05aa43e25b3519
Author: Harald Sitter <sitter at kde.org>
Date: Mon Dec 7 10:12:48 2015 +0100
fix style violations in autopkgtest
---
dci/autopkgtest.rb | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/dci/autopkgtest.rb b/dci/autopkgtest.rb
index 4766ed6..bb9fa2e 100644
--- a/dci/autopkgtest.rb
+++ b/dci/autopkgtest.rb
@@ -2,12 +2,17 @@ require_relative '../lib/logger'
logger = DCILogger.instance
-if not ARGV[1].end_with? '.changes'
- logger.fatal("#{ARGV[1]} is not an actual changes file. Abort!")
+if ARGV[1].end_with? '.changes'
+ logger.info('Starting autopkgtest')
+ autopkgtest_result = system("DEB_BUILD_OPTIONS=\"parallel=$(nproc)\" " \
+ " adt-run --changes #{ARGV[1]} --- null")
+ if autopkgtest_result
+ logger.info('Autopkg test passed!')
+ else
+ logger.error('Autopkg test failed!')
+ end
else
- logger.info("Starting autopkgtest")
- autopkgtest_result = system("DEB_BUILD_OPTIONS=\"parallel=$(nproc)\" adt-run --changes #{ARGV[1]} --- null")
- autopkgtest_result ? logger.info("Autopkg test passed!") : logger.error("Autopkg test failed!")
+ logger.fatal("#{ARGV[1]} is not an actual changes file. Abort!")
end
logger.close
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list