Skip to content

Commit 49a74ea

Browse files
committed
Update test case
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 707f6b0 commit 49a74ea

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

fluent-package/apt/systemd-test/tmpfiles.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@ touch -d "2 months ago" /tmp/fluentd-lock-*
3131
sudo systemd-tmpfiles --clean
3232
ls -d /tmp/fluent
3333
ls -d /tmp/fluentd-lock-*
34+
35+
# The update should succeed even if the working directory does not exist
36+
# https://github.com/fluent/fluent-package-builder/pull/955
37+
systemctl stop fluentd
38+
rm -rf /tmp/fluent/
39+
40+
# Install next major version
41+
sudo apt install -V -y \
42+
/host/v7-test/${distribution}/pool/${code_name}/${channel}/*/*/fluent-package_*_${architecture}.deb 2>&1 | tee upgrade.log

fluent-package/yum/systemd-test/tmpfiles.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,12 @@ touch -d "2 months ago" /tmp/fluentd-lock-*
3232
sudo systemd-tmpfiles --clean
3333
ls -d /tmp/fluent
3434
ls -d /tmp/fluentd-lock-*
35+
36+
# The update should succeed even if the working directory does not exist
37+
# https://github.com/fluent/fluent-package-builder/pull/955
38+
systemctl stop fluentd
39+
rm -rf /tmp/fluent/
40+
41+
# Install next major version
42+
package="/host/v7-test/${distribution}/${DISTRIBUTION_VERSION}/x86_64/Packages/fluent-package-*.rpm"
43+
sudo $DNF install -y $package

0 commit comments

Comments
 (0)