Skip to content

Commit b766061

Browse files
BrewTestBotdaeho-ro
authored andcommitted
bookokrat 0.3.5
bookokrat: fix test log path Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent c2dcbd0 commit b766061

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Formula/b/bookokrat.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Bookokrat < Formula
22
desc "Terminal EPUB Book Reader"
33
homepage "https://bugzmanov.github.io/bookokrat/index.html"
4-
url "https://github.com/bugzmanov/bookokrat/archive/refs/tags/v0.3.4.tar.gz"
5-
sha256 "c4871e93ce57ee32693c2f6358782dedc920cf139a266ae26f3d958202854284"
4+
url "https://github.com/bugzmanov/bookokrat/archive/refs/tags/v0.3.5.tar.gz"
5+
sha256 "0751669309b657aacf5bb22577d9b42d07e9f70b92aada2e717df189aeb1e72e"
66
license "AGPL-3.0-or-later"
77
head "https://github.com/bugzmanov/bookokrat.git", branch: "main"
88

@@ -39,13 +39,14 @@ def install
3939
end
4040

4141
sleep 2
42-
config_prefix = if OS.mac?
43-
testpath/"Library/Application Support/bookokrat"
42+
config_prefix, log_prefix = if OS.mac?
43+
[testpath/"Library/Application Support/bookokrat", testpath/"Library/Caches/bookokrat"]
4444
else
45-
testpath/".config/bookokrat"
45+
[testpath/".config/bookokrat", testpath/".local/state/bookokrat"]
4646
end
47+
system "ls", "-alR"
4748
assert_path_exists config_prefix/"config.yaml"
48-
assert_match "Starting Bookokrat EPUB reader", (testpath/"bookokrat.log").read
49+
assert_match "Starting Bookokrat EPUB reader", (log_prefix/"bookokrat.log").read
4950
ensure
5051
Process.kill("TERM", pid)
5152
Process.wait(pid)

0 commit comments

Comments
 (0)