Skip to content

Commit

Permalink
system-test install-newly: remove unnecessary condition
Browse files Browse the repository at this point in the history
Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 authored and kenhys committed Nov 26, 2024
1 parent 782d37e commit 9c15e3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 3 additions & 6 deletions fluent-package/apt/systemd-test/install-newly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ sudo fluent-gem install fluent-plugin-concat
test $(find /tmp/ -name gem_local_list.output | xargs cat) = "fluent-plugin-concat"

# Test: Guard duplicated instance
if [ "$1" = "local" ]; then
# FIXME: until guard feature was released, skip v5 and lts.
(! sudo /usr/sbin/fluentd)
(! sudo /usr/sbin/fluentd -v)
sudo /usr/sbin/fluentd --dry-run
fi
(! sudo /usr/sbin/fluentd)
(! sudo /usr/sbin/fluentd -v)
sudo /usr/sbin/fluentd --dry-run

sudo apt remove -y fluent-package

Expand Down
9 changes: 5 additions & 4 deletions fluent-package/yum/systemd-test/install-newly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ if [ $1 = "local" ]; then
sudo $DNF install -y tar findutils
sudo /opt/fluent/bin/fluent-diagtool -t fluentd -o /tmp
test $(find /tmp/ -name gem_local_list.output | xargs cat) = "fluent-plugin-concat"
# FIXME: until guard feature was released, skip v5 and lts.
(! sudo /usr/sbin/fluentd)
(! sudo /usr/sbin/fluentd -v)
sudo /usr/sbin/fluentd --dry-run
fi

# Test: Guard duplicated instance
(! sudo /usr/sbin/fluentd)
(! sudo /usr/sbin/fluentd -v)
sudo /usr/sbin/fluentd --dry-run

sudo $DNF remove -y fluent-package
sudo systemctl daemon-reload

Expand Down

0 comments on commit 9c15e3d

Please sign in to comment.