Skip to content

Commit

Permalink
update test for SystemV init script file metadata
Browse files Browse the repository at this point in the history
 from commit 7e8d703, script is no longer marked `%config`
  • Loading branch information
dwhjames committed Apr 6, 2015
1 parent b57833b commit 62ef8e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sbt-test/rpm/test-executableScriptName/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
()
}
}

0 comments on commit 62ef8e1

Please sign in to comment.