From 62ef8e113164f01dd00499610bf221ffa877c7f5 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 6 Apr 2015 11:15:38 -0400 Subject: [PATCH] update test for SystemV init script file metadata from commit 7e8d703, script is no longer marked `%config` --- src/sbt-test/rpm/test-executableScriptName/build.sbt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbt-test/rpm/test-executableScriptName/build.sbt b/src/sbt-test/rpm/test-executableScriptName/build.sbt index c208ff9d5..074dd2c1a 100644 --- a/src/sbt-test/rpm/test-executableScriptName/build.sbt +++ b/src/sbt-test/rpm/test-executableScriptName/build.sbt @@ -24,7 +24,7 @@ rpmLicense := Some("BSD") TaskKey[Unit]("check-spec-file") <<= (target, streams) map { (target, out) => val spec = IO.read(target / "rpm" / "SPECS" / "rpm-test.spec") assert(spec contains "%attr(0644,root,root) /usr/share/rpm-test/lib/rpm-test.rpm-test-0.1.0.jar", "Wrong installation path\n" + spec) - assert(spec contains "%config %attr(0755,root,root) /etc/init.d/rpm-test", "Wrong /etc/init.d/\n" + spec) + assert(spec contains "%attr(0755,root,root) /etc/init.d/rpm-test", "Wrong /etc/init.d/\n" + spec) assert(spec contains "%config %attr(644,root,root) /etc/default/rpm-test", "Wrong etc default file\n" + spec) assert(spec contains "%dir %attr(755,rpm-test,rpm-test) /var/log/rpm-test", "Wrong logging dir path\n" + spec) assert(spec contains "%dir %attr(755,rpm-test,rpm-test) /var/run/rpm-test", "Wrong /var/run dir path\n" + spec) @@ -43,4 +43,4 @@ TaskKey[Unit]("checkStartupScript") <<= (target, streams) map { (target, out) => assert(script contains "rpm-exec", "SystemV script didn't contain correct executable filename 'rpm-exec' \n" + script) out.log.success("Successfully tested startup script start up script") () -} \ No newline at end of file +}