commit bats for openSUSE:Factory

2023-07-25 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2023-07-25 11:50:33

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.1467 (New)


Package is "bats"

Tue Jul 25 11:50:33 2023 rev:17 rq:1099779 version:1.10.0

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2023-02-15 
13:41:24.583060755 +0100
+++ /work/SRC/openSUSE:Factory/.bats.new.1467/bats.changes  2023-07-25 
11:51:58.277757432 +0200
@@ -1,0 +2,26 @@
+Sun Jul 16 18:41:06 UTC 2023 - Dirk Müller 
+
+- update to 1.10.0:
+  * add `${BATS_TEST_TAGS[@]}` for querying the tags during a
+test
+  * print tags on failing tests
+  * test for negative arguments to `--jobs`
+  * add tests for `--formatter cat`
+  * test coverage in CI
+  * Support for rush as alternative to GNU parallel
+  * add `bats_pipe` helper function for `run` that executes `\|`
+as pipes
+  * publish docker images to ghcr.io (additionally to Dockerhub)
+  * clarify use cases of `--formatter cat`
+  * fix `run` with options overwriting the value of `i`
+  * fix `${BATS_TEST_NAMES[@]}` containing only `--tags` instead
+of test name since Bats v1.8.0
+  * fix `run --keep-empty-lines` counting trailing ` ` as
+(empty) new line
+  * fix short flag unpacker creating bogus command lines with
+valued flags
+  * fix formatter becoming confused with retries
+  * fix `--gather-test-outputs-in` fails on tests with `/`
+  * fix overriding `date` breaks `--timing`
+
+---

Old:

  bats-core-1.9.0.tar.gz

New:

  bats-core-1.10.0.tar.gz



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.t0EuV4/_old  2023-07-25 11:52:00.445770126 +0200
+++ /var/tmp/diff_new_pack.t0EuV4/_new  2023-07-25 11:52:00.453770173 +0200
@@ -18,7 +18,7 @@
 
 %define pname %{name}-core
 Name:   bats
-Version:1.9.0
+Version:1.10.0
 Release:0
 Summary:Bash Automated Testing System
 License:MIT

++ bats-core-1.9.0.tar.gz -> bats-core-1.10.0.tar.gz ++
 3205 lines of diff (skipped)


commit bats for openSUSE:Factory

2023-02-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2023-02-15 13:41:06

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.22824 (New)


Package is "bats"

Wed Feb 15 13:41:06 2023 rev:16 rq:1065892 version:1.9.0

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2022-11-09 
12:58:11.944606221 +0100
+++ /work/SRC/openSUSE:Factory/.bats.new.22824/bats.changes 2023-02-15 
13:41:24.583060755 +0100
@@ -1,0 +2,16 @@
+Tue Feb 14 09:42:03 UTC 2023 - Avinesh Kumar 
+
+- Update to version 1.9.0:
+  * add installation instructions for Debian, Fedora, Gentoo, and OpenSUSE 
(#659)
+  * add `--line-reference-format` to switch file/line references in stack 
traces (#665)
+  * add `bats:focus` tag to run only focused tests (#679)
+  * add bats-support, bats-assert, bats-file and bats-detik to Dockerfile 
(#674)
+  * add `--help` text and `man` page content for `--filter-tags` (#679)
+  * explicitly check for GNU parallel (#691)
+  * wait for report-formatter to finish before ending `bats`' execution,
+to fix empty files with `--report-fomatter junit` under Docker (#692)
+  * improved clarity of section about output in free code (#671)
+  * fixed typos (#673)
+  * clarify use cases of `run` (#366) 
+
+---

Old:

  bats-core-1.8.2.tar.gz

New:

  bats-core-1.9.0.tar.gz



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.qxZMnM/_old  2023-02-15 13:41:25.027063194 +0100
+++ /var/tmp/diff_new_pack.qxZMnM/_new  2023-02-15 13:41:25.031063216 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package bats
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %define pname %{name}-core
 Name:   bats
-Version:1.8.2
+Version:1.9.0
 Release:0
 Summary:Bash Automated Testing System
 License:MIT

++ bats-core-1.8.2.tar.gz -> bats-core-1.9.0.tar.gz ++
 2389 lines of diff (skipped)


commit bats for openSUSE:Factory

2022-11-09 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2022-11-09 12:57:42

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.1597 (New)


Package is "bats"

Wed Nov  9 12:57:42 2022 rev:15 rq:1034626 version:1.8.2

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2022-07-18 
18:34:30.973806881 +0200
+++ /work/SRC/openSUSE:Factory/.bats.new.1597/bats.changes  2022-11-09 
12:58:11.944606221 +0100
@@ -1,0 +2,21 @@
+Tue Nov  8 09:29:03 UTC 2022 - Andrea Manzini 
+
+- Update to version 1.8.2:
+  * fix non zero return code on successful retried tests
+  * avoid kernel warning flood/hang with CTRL+C on Bash 5.2 RC
+  * Fix infinite wait with (invalid) -j (without space) 
+  * using external formatters via --formatter  (also works for 
--report-formatter)
+  * running only tests that failed in the last run via --filter-status failed
+  * variable BATS_TEST_RETRIES that specifies how often a test should be 
reattempted before it is considered failed
+  * BATS_TEST_TIMEOUT variable to force a timeout on test (including setup())
+  * test_tags=/# bats file_tags= and --filter-tags  for tagging tests 
+  * add documentation for bats_require_minimum_version, setup_suite, fix typos
+  * improve documentation about setup_suite
+  * allow --gather-test-outputs-in  to work with existing, empty 
directories
+  * fix load in teardown marking failed tests as not run
+  * add /usr/lib/bats as default value for BATS_LIB_PATH
+  * fix unset variable in bats-formatter-junit when setup_file fails
+  * unify error behavior of teardown/teardown_file/teardown_suite functions: 
only fail via return code, not via ERREXIT
+  * only print setup_suite's stderr on errors
+
+---

Old:

  bats-core-1.7.0.tar.gz

New:

  bats-core-1.8.2.tar.gz



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.pqIJNV/_old  2022-11-09 12:58:12.288608160 +0100
+++ /var/tmp/diff_new_pack.pqIJNV/_new  2022-11-09 12:58:12.292608183 +0100
@@ -18,7 +18,7 @@
 
 %define pname %{name}-core
 Name:   bats
-Version:1.7.0
+Version:1.8.2
 Release:0
 Summary:Bash Automated Testing System
 License:MIT

++ bats-core-1.7.0.tar.gz -> bats-core-1.8.2.tar.gz ++
 11746 lines of diff (skipped)


commit bats for openSUSE:Factory

2022-07-18 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2022-07-18 18:34:15

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.1523 (New)


Package is "bats"

Mon Jul 18 18:34:15 2022 rev:14 rq:989633 version:1.7.0

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2022-06-09 
14:11:57.644541546 +0200
+++ /work/SRC/openSUSE:Factory/.bats.new.1523/bats.changes  2022-07-18 
18:34:30.973806881 +0200
@@ -1,0 +2,23 @@
+Wed Jun 15 18:28:08 UTC 2022 - Olav Reinert 
+
+- Update to version 1.7.0:
+  * Pretty formatter print filename when entering file (#561)
+  * BATS_TEST_NAME_PREFIX allows prefixing test names on stdout and in reports 
(#561)
+  * setup_suite and teardown_suite (#571, #585)
+  * out-of-band warning infrastructure, with following warnings:
+* BW01: run command not found (exit code 127)  (#586)
+* BW02: run uses flags without proper `bats_require_minimum_version` guard 
(#587)
+  * `bats_require_minimum_version` to guard code that would not run on older
+versions (#587)
+  * unbound variable errors in formatters when using `SHELLOPTS=nounset` 
(`-u`) (#558)
+  * don't require `flock` *and* `shlock` for parallel mode test (#554)
+  * print name of failing test when using TAP13 with timing information (#559, 
#555)
+  * removed broken symlink, added regression test (#560)
+  * don't show empty lines as `#` with pretty formatter  (#561)
+  * prevent `teardown`, `teardown_file`, and `teardown_suite` from overriding 
bats'
+exit code by setting `$status` (e.g. via calling `run`) (#581, #575)
+* **CRITICAL**: this can return exit code 0 despite failed tests, thus 
preventing
+  your CI from reporting test failures! The regression happened in version 
1.6.0.
+  * `run --keep-empty-lines` now reports 0 lines on empty `$output` (#583)
+
+---

Old:

  bats-core-1.6.1.tar.gz

New:

  bats-core-1.7.0.tar.gz



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.5llQBF/_old  2022-07-18 18:34:31.413807507 +0200
+++ /var/tmp/diff_new_pack.5llQBF/_new  2022-07-18 18:34:31.421807518 +0200
@@ -18,7 +18,7 @@
 
 %define pname %{name}-core
 Name:   bats
-Version:1.6.1
+Version:1.7.0
 Release:0
 Summary:Bash Automated Testing System
 License:MIT

++ bats-core-1.6.1.tar.gz -> bats-core-1.7.0.tar.gz ++
 2105 lines of diff (skipped)


commit bats for openSUSE:Factory

2022-06-09 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2022-06-09 14:11:50

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.1548 (New)


Package is "bats"

Thu Jun  9 14:11:50 2022 rev:13 rq:981380 version:1.6.1

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2022-04-19 
09:58:40.947596867 +0200
+++ /work/SRC/openSUSE:Factory/.bats.new.1548/bats.changes  2022-06-09 
14:11:57.644541546 +0200
@@ -1,0 +2,13 @@
+Wed Jun  8 19:11:07 UTC 2022 - Olav Reinert 
+
+- Update to version 1.6.1:
+  * prevent teardown, teardown_file, and teardown_suite from overriding bats'
+exit code by setting $status (e.g. via calling run) (#581, #575)
+- CRITICAL: this can return exit code 0 despite failed tests, thus
+  preventing your CI from reporting test failures! The regression happened
+  in version 1.6.0.
+  * corrected invalid documentation of run -N (had =N instead) (#579)
+- CRITICAL: using the incorrect form can lead to silent errors. See issue
+  #578 for more details and how to find out if your tests are affected.
+
+---

Old:

  bats-core-1.6.0.tar.gz

New:

  bats-core-1.6.1.tar.gz



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.VaFDuC/_old  2022-06-09 14:11:58.184542269 +0200
+++ /var/tmp/diff_new_pack.VaFDuC/_new  2022-06-09 14:11:58.192542280 +0200
@@ -18,7 +18,7 @@
 
 %define pname %{name}-core
 Name:   bats
-Version:1.6.0
+Version:1.6.1
 Release:0
 Summary:Bash Automated Testing System
 License:MIT

++ bats-core-1.6.0.tar.gz -> bats-core-1.6.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bats-core-1.6.0/contrib/rpm/bats.spec 
new/bats-core-1.6.1/contrib/rpm/bats.spec
--- old/bats-core-1.6.0/contrib/rpm/bats.spec   2022-02-24 15:27:24.0 
+0100
+++ new/bats-core-1.6.1/contrib/rpm/bats.spec   2022-05-14 00:20:21.0 
+0200
@@ -3,7 +3,7 @@
 %global repobats-core
 
 Name:   bats
-Version:1.6.0
+Version:1.6.1
 Release:1%{?dist}
 Summary:Bash Automated Testing System
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bats-core-1.6.0/docs/CHANGELOG.md 
new/bats-core-1.6.1/docs/CHANGELOG.md
--- old/bats-core-1.6.0/docs/CHANGELOG.md   2022-02-24 15:27:24.0 
+0100
+++ new/bats-core-1.6.1/docs/CHANGELOG.md   2022-05-14 00:20:21.0 
+0200
@@ -8,7 +8,21 @@
 [kac]: https://keepachangelog.com/en/1.0.0/
 [semver]: https://semver.org/
 
-## [Unreleased]
+## [1.6.1] - 2022-05-14
+
+### Fixed
+
+* prevent `teardown`, `teardown_file`, and `teardown_suite` from overriding 
bats'
+  exit code by setting `$status` (e.g. via calling `run`) (#581, #575)
+  * **CRITICAL**: this can return exit code 0 despite failed tests, thus 
preventing
+your CI from reporting test failures! The regression happened in version 
1.6.0.
+
+ Documentation
+
+* corrected invalid documentation of `run -N` (had `=N` instead) (#579)
+  * **CRITICAL**: using the incorrect form can lead to silent errors. See
+[issue #578](https://github.com/bats-core/bats-core/issues/578) for more
+details and how to find out if your tests are affected.
 
 ## [1.6.0] - 2022-02-24
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bats-core-1.6.0/docs/source/writing-tests.md 
new/bats-core-1.6.1/docs/source/writing-tests.md
--- old/bats-core-1.6.0/docs/source/writing-tests.md2022-02-24 
15:27:24.0 +0100
+++ new/bats-core-1.6.1/docs/source/writing-tests.md2022-05-14 
00:20:21.0 +0200
@@ -58,8 +58,13 @@
 If invoked with one of the following as the first argument, `run`
 will perform an implicit check on the exit status of the invoked command:
 
+> ?? **_CAUTION_** ??: Previous versions of this documentation 
erronously contained
+> the syntax `=N` instead of `-N` below. Using this wrong format leads to 
silent
+> errors. See [issue #578](https://github.com/bats-core/bats-core/issues/578)
+> for more details and how to found out if your tests are affected.
+
 ```pre
-=N  expect exit status N (0-255), fail if otherwise
+-N  expect exit status N (0-255), fail if otherwise
 ! expect nonzero exit status (1-255), fail if command succeeds
 ```
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bats-core-1.6.0/libexec/bats-core/bats 
new/bats-core-1.6.1/libexec/bats-core/bats
--- old/bats-co

commit bats for openSUSE:Factory

2022-04-19 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2022-04-19 09:58:36

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.1941 (New)


Package is "bats"

Tue Apr 19 09:58:36 2022 rev:12 rq:970632 version:1.6.0

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2021-12-12 
00:58:05.906604520 +0100
+++ /work/SRC/openSUSE:Factory/.bats.new.1941/bats.changes  2022-04-19 
09:58:40.947596867 +0200
@@ -1,0 +2,14 @@
+Mon Apr 18 14:59:49 UTC 2022 - Ferdinand Thiessen 
+
+- Update to version 1.6.0
+  * Added: New flag --code-quote-style (and $BATS_CODE_QUOTE_STYLE)
+to customize quotes around code blocks in error output
+  * Added: bats_load_library for loading libraries from the search
+path $BATS_LIB_PATH
+  * Improved error trace for some broken cases
+  * Fixed leaking of local variables from debug trap
+  * Don't mark FD3 output from teardown_file as  in junit
+output
+  * Fix unbound variable error with Bash pre 4.4
+
+---

Old:

  bats-core-1.5.0.tar.gz

New:

  bats-core-1.6.0.tar.gz



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.PFwRts/_old  2022-04-19 09:58:41.419597480 +0200
+++ /var/tmp/diff_new_pack.PFwRts/_new  2022-04-19 09:58:41.423597485 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package bats
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %define pname %{name}-core
 Name:   bats
-Version:1.5.0
+Version:1.6.0
 Release:0
 Summary:Bash Automated Testing System
 License:MIT

++ bats-core-1.5.0.tar.gz -> bats-core-1.6.0.tar.gz ++
 2660 lines of diff (skipped)


commit bats for openSUSE:Factory

2021-12-11 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2021-12-12 00:57:47

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.2520 (New)


Package is "bats"

Sun Dec 12 00:57:47 2021 rev:11 rq:939931 version:1.5.0

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2021-04-18 
21:45:51.792798226 +0200
+++ /work/SRC/openSUSE:Factory/.bats.new.2520/bats.changes  2021-12-12 
00:58:05.906604520 +0100
@@ -1,0 +2,42 @@
+Sat Dec 11 16:16:42 UTC 2021 - Olav Reinert 
+
+- boo#1193177: Fix build on Leap and SLE
+
+---
+Wed Nov 24 23:53:57 UTC 2021 - Dirk M??ller 
+
+- update to 1.5.0:
+  * new command line flags
+* `--verbose-run`: Make `run` print `$output` by default
+* `-x`, `--trace`: Print test commands as they are executed (like `set 
-x`)`
+* `--show-output-of-passing-tests`: Print output of passing tests
+* `--print-output-on-failure`: Automatically print the value of  `$output` 
on
+  failed tests
+* `--gather-test-outputs-in `: Gather the output of failing 
**and**
+  passing tests as files in directory
+  * Experimental: add return code checks to `run` via `!`/`-`
+  * `install.sh` and `uninstall.sh` take an optional second parameter for the 
lib
+folder name to allow for multilib install, e.g. into lib64
+  * add `run` flag `--keep-empty-lines` to retain empty lines in `${lines[@]}`
+  * add `run` flag `--separate-stderr` which also fills `$stderr` and
+`$stderr_lines`
+  * don't glob `run`'s `$output` when splitting into `${lines[@]}`
+  * remove empty line after test with pretty formatter on some terminals
+  * don't run setup_file/teardown_file on files without tests, e.g. due to
+filtering
+  * print final line without newline on Bash 3.2 for midtest (ERREXIT) failures
+  * abort with error on missing flock/shlock when running in parallel mode
+  * improved `set -u` test and fixed some unset variable accesses
+  * shorten suite/file/test temporary folder paths to leave enough space even 
on
+restricted systems
+  * added BATS_TEST_TMPDIR, BATS_FILE_TMPDIR, BATS_SUITE_TMPDIR
+  * added checks and improved documentation for `$BATS_TMPDIR`
+  * the docker container now uses [tini](https://github.com/krallin/tini) as 
the
+container entrypoint to improve signal forwarding
+  * script to uninstall bats from a given prefix
+  * replace preprocessed file path (e.g. 
`/tmp/bats-run-22908-NP0f9h/bats.23102.src`)
+with original filename in stdout/err (but not FD3!)
+  * print aborted command on SIGINT/CTRL+C
+  * print error message when BATS_RUN_TMPDIR could not be created
+
+---

Old:

  bats-core-1.3.0.tar.gz

New:

  bats-core-1.5.0.tar.gz



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.5UqaLb/_old  2021-12-12 00:58:06.362604834 +0100
+++ /var/tmp/diff_new_pack.5UqaLb/_new  2021-12-12 00:58:06.362604834 +0100
@@ -18,13 +18,13 @@
 
 %define pname %{name}-core
 Name:   bats
-Version:1.3.0
+Version:1.5.0
 Release:0
 Summary:Bash Automated Testing System
 License:MIT
 Group:  Development/Tools/Other
 URL:https://github.com/%{pname}/%{pname}/
-Source: %{URL}/archive/v%{version}.tar.gz#/%{pname}-%{version}.tar.gz
+Source: 
https://github.com/%{pname}/%{pname}/archive/v%{version}.tar.gz#/%{pname}-%{version}.tar.gz
 BuildRequires:  ncurses-utils
 Requires:   gnu_parallel
 BuildArch:  noarch
@@ -46,7 +46,7 @@
 sed -i '1s|#!%{_bindir}/env bash|#!/bin/bash|' ./lib{,exec}/%{pname}/* 
./bin/bats
 %if 0%{?suse_version} <= 1500
 mv -v libexec/%{pname}/* lib/%{pname}/
-sed -i 's|libexec|lib|g' install.sh ./lib/%{pname}/* ./bin/bats
+sed -i 's|libexec|lib|g' install.sh ./lib/%{pname}/* ./bin/bats 
./test/*.bats
 %endif
 
 %build

++ bats-core-1.3.0.tar.gz -> bats-core-1.5.0.tar.gz ++
 6319 lines of diff (skipped)


commit bats for openSUSE:Factory

2021-04-18 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2021-04-18 21:45:33

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.12324 (New)


Package is "bats"

Sun Apr 18 21:45:33 2021 rev:10 rq:886494 version:1.3.0

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2020-12-17 
17:09:10.377962995 +0100
+++ /work/SRC/openSUSE:Factory/.bats.new.12324/bats.changes 2021-04-18 
21:45:51.792798226 +0200
@@ -1,0 +2,26 @@
+Sun Apr 18 17:54:00 UTC 2021 - Ferdinand Thiessen 
+
+- Update to 1.3.0
+  * Added custom test-file extension via BATS_FILE_EXTENSION when
+searching for test files in a directory
+  * Added TAP13 formatter, including millisecond timing
+  * Recursive suite mode will follow symlinks now
+  * Split options for (file-) --report-formatter and (stdout)
+--formatter
+WARNING: This changes the meaning of --formatter junit.
+  stdout will now show unified xml instead of TAP. From now on,
+  please use --report-formatter junit to obtain the .xml report file!
+  * Removed --parallel-preserve-environment flag, as this is the default
+  * Preprocessed files are no longer removed if --no-tempdir-cleanup
+is specified
+  * Fix internal failures due to unbound variables when test files
+use set -u
+  * Fix internal failures due to changes to $PATH in test files
+  * Fix hangs on CTRL+C
+  * Make BATS_TEST_NUMBER count per file again
+  * Performance improvements
+  * Improved documentation
+- Dropped upstream merged
+  bsc1180135-0001-fix-dont-use-unbound-variables-in-setup-methods.patch
+
+---

Old:

  bsc1180135-0001-fix-dont-use-unbound-variables-in-setup-methods.patch
  v1.2.1.tar.gz

New:

  bats-core-1.3.0.tar.gz



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.TCdYHJ/_old  2021-04-18 21:45:52.180798882 +0200
+++ /var/tmp/diff_new_pack.TCdYHJ/_new  2021-04-18 21:45:52.184798889 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package bats
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,13 @@
 
 %define pname %{name}-core
 Name:   bats
-Version:1.2.1
+Version:1.3.0
 Release:0
 Summary:Bash Automated Testing System
 License:MIT
 Group:  Development/Tools/Other
 URL:https://github.com/%{pname}/%{pname}/
-Source: https://github.com/%{pname}/%{pname}/archive/v%{version}.tar.gz
-# FIX-UPSTREAM: Backport of https://github.com/bats-core/bats-core/pull/344. 
bsc#1180135
-Patch1: 
bsc1180135-0001-fix-dont-use-unbound-variables-in-setup-methods.patch
+Source: %{URL}/archive/v%{version}.tar.gz#/%{pname}-%{version}.tar.gz
 BuildRequires:  ncurses-utils
 Requires:   gnu_parallel
 BuildArch:  noarch
@@ -44,8 +42,6 @@
 
 %prep
 %setup -q -n %{pname}-%{version}
-# bsc#1180135
-%patch1 -p1
 
 sed -i '1s|#!%{_bindir}/env bash|#!/bin/bash|' ./lib{,exec}/%{pname}/* 
./bin/bats
 %if 0%{?suse_version} <= 1500


commit bats for openSUSE:Factory

2020-12-17 Thread User for buildservice source handling
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2020-12-17 17:05:39

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.5145 (New)


Package is "bats"

Thu Dec 17 17:05:39 2020 rev:9 rq:856627 version:1.2.1

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2020-11-23 
10:22:12.892802182 +0100
+++ /work/SRC/openSUSE:Factory/.bats.new.5145/bats.changes  2020-12-17 
17:09:10.377962995 +0100
@@ -1,0 +2,6 @@
+Thu Dec 17 00:43:18 UTC 2020 - Aleksa Sarai 
+
+- Backport . bsc#1180135
+  + bsc1180135-0001-fix-dont-use-unbound-variables-in-setup-methods.patch
+
+---
@@ -18,0 +25,6 @@
+
+---
+Fri Jul  3 01:08:46 UTC 2020 - Aleksa Sarai 
+
+- Require gnu_parallel so that 'bats --jobs' works out of the box and is tested
+  as part of the integration tests of the package.

New:

  bsc1180135-0001-fix-dont-use-unbound-variables-in-setup-methods.patch



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.xGP48Y/_old  2020-12-17 17:09:10.893963508 +0100
+++ /var/tmp/diff_new_pack.xGP48Y/_new  2020-12-17 17:09:10.897963512 +0100
@@ -25,7 +25,10 @@
 Group:  Development/Tools/Other
 URL:https://github.com/%{pname}/%{pname}/
 Source: https://github.com/%{pname}/%{pname}/archive/v%{version}.tar.gz
+# FIX-UPSTREAM: Backport of https://github.com/bats-core/bats-core/pull/344. 
bsc#1180135
+Patch1: 
bsc1180135-0001-fix-dont-use-unbound-variables-in-setup-methods.patch
 BuildRequires:  ncurses-utils
+Requires:   gnu_parallel
 BuildArch:  noarch
 
 %description
@@ -41,6 +44,8 @@
 
 %prep
 %setup -q -n %{pname}-%{version}
+# bsc#1180135
+%patch1 -p1
 
 sed -i '1s|#!%{_bindir}/env bash|#!/bin/bash|' ./lib{,exec}/%{pname}/* 
./bin/bats
 %if 0%{?suse_version} <= 1500

++ bsc1180135-0001-fix-dont-use-unbound-variables-in-setup-methods.patch 
++
From 43b8ae1444e2faf62a80455eafa42d0b02709423 Mon Sep 17 00:00:00 2001
From: Martin Schulze 
Date: Mon, 17 Aug 2020 23:22:31 +0200
Subject: [PATCH] fix: don't use unbound variables in setup methods

- fixes #340
---
 lib/bats-core/test_functions.bash |  2 +-
 test/bats.bats| 13 +++
 .../bats/set_-eu_in_setup_and_teardown.bats   | 23 +++
 3 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 test/fixtures/bats/set_-eu_in_setup_and_teardown.bats

diff --git a/lib/bats-core/test_functions.bash 
b/lib/bats-core/test_functions.bash
index 9eded0c0309a..e1fbb2a9f49a 100644
--- a/lib/bats-core/test_functions.bash
+++ b/lib/bats-core/test_functions.bash
@@ -54,7 +54,7 @@ teardown() {
 
 skip() {
   # if this is a skip in teardown ...
-  if [[ -n "$BATS_TEARDOWN_STARTED" ]]; then
+  if [[ -n "${BATS_TEARDOWN_STARTED-}" ]]; then
 # ... we want to skip the rest of teardown.
 # communicate to bats_exit_trap that the teardown was completed without 
error
 # shellcheck disable=SC2034
diff --git a/test/bats.bats b/test/bats.bats
index 1dc7e5be635c..73fb54459b28 100755
--- a/test/bats.bats
+++ b/test/bats.bats
@@ -576,3 +576,16 @@ END_OF_ERR_MSG
   run bash -c "echo $'1..1\nok 1' | bats_test_count_validator"
   [[ $status -eq 0 ]]
 }
+
+@test "Don't use unbound variables inside bats (issue #340)" {
+  run bats "$FIXTURE_ROOT/set_-eu_in_setup_and_teardown.bats"
+  echo "$output"
+  [[ "${lines[0]}" == "1..4" ]]
+  [[ "${lines[1]}" == "ok 1 skipped test # skip" ]]
+  [[ "${lines[2]}" == "ok 2 skipped test with reason # skip reason" ]]
+  [[ "${lines[3]}" == "ok 3 passing test" ]]
+  [[ "${lines[4]}" == "not ok 4 failing test" ]]
+  [[ "${lines[5]}" == "# (in test file 
$RELATIVE_FIXTURE_ROOT/set_-eu_in_setup_and_teardown.bats, line 22)" ]]
+  [[ "${lines[6]}" == "#   \`false' failed" ]]
+  [[ "${#lines[@]}" -eq 7 ]]
+}
diff --git a/test/fixtures/bats/set_-eu_in_setup_and_teardown.bats 
b/test/fixtures/bats/set_-eu_in_setup_and_teardown.bats
new file mode 100644
index ..e9879f0ab54e
--- /dev/null
+++ b/test/fixtures/bats/set_-eu_in_setup_and_teardown.bats
@@ -0,0 +1,23 @@
+setup() {
+set -eu
+}
+
+teardown() {
+set -eu
+}
+
+@test "skipped test" {
+skip
+}
+
+@test "skipped test with reason" {
+skip "reason"
+}
+
+@test "passing test" {
+run true
+}
+
+@test "failing test" {
+false
+}
\ No newline at end of file
-- 
2.29.2
___
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List 

[opensuse-commit] commit bats for openSUSE:Factory

2020-11-23 Thread User for buildservice source handling
Hello community,

here is the log from the commit of package bats for openSUSE:Factory checked in 
at 2020-11-21 12:42:17

Comparing /work/SRC/openSUSE:Factory/bats (Old)
 and  /work/SRC/openSUSE:Factory/.bats.new.5913 (New)


Package is "bats"

Sat Nov 21 12:42:17 2020 rev:8 rq:849516 version:1.2.1

Changes:

--- /work/SRC/openSUSE:Factory/bats/bats.changes2020-05-26 
17:20:40.768150119 +0200
+++ /work/SRC/openSUSE:Factory/.bats.new.5913/bats.changes  2020-11-23 
10:22:12.892802182 +0100
@@ -1,0 +2,19 @@
+Wed Nov 18 22:44:45 UTC 2020 - Olav Reinert 
+
+- update to 1.2.1:
+  * added:
+- JUnit output and extensible formatter rewrite (#246)
+- load function now reads from absolute and relative paths, and $PATH 
(#282)
+- Beginner-friendly examples in /docs/examples (#243)
+- @peshay's bats-file fork contributed to bats-core/bats-file (#276)
+  * changed:
+- Duplicate test names now error (previous behaviour was to issue a 
warning) (#286)
+- Changed default formatter in Docker to pretty by adding ncurses to 
Dockerfile, override with --tap (#239)
+- Replace "readlink -f" dependency with Bash solution (#217)
+
+---
+Wed Nov 18 21:32:54 UTC 2020 - Olav Reinert 
+
+- Install to /usr/libexec on Tumbleweed
+
+---

Old:

  v1.2.0.tar.gz

New:

  v1.2.1.tar.gz



Other differences:
--
++ bats.spec ++
--- /var/tmp/diff_new_pack.tAOABS/_old  2020-11-23 10:22:13.436802797 +0100
+++ /var/tmp/diff_new_pack.tAOABS/_new  2020-11-23 10:22:13.440802801 +0100
@@ -16,14 +16,15 @@
 #
 
 
+%define pname %{name}-core
 Name:   bats
-Version:1.2.0
+Version:1.2.1
 Release:0
 Summary:Bash Automated Testing System
 License:MIT
 Group:  Development/Tools/Other
-URL:https://github.com/bats-core/bats-core/
-Source: 
https://github.com/bats-core/bats-core/archive/v%{version}.tar.gz
+URL:https://github.com/%{pname}/%{pname}/
+Source: https://github.com/%{pname}/%{pname}/archive/v%{version}.tar.gz
 BuildRequires:  ncurses-utils
 BuildArch:  noarch
 
@@ -39,11 +40,13 @@
 to test any UNIX program.
 
 %prep
-%setup -q -n %{name}-core-%{version}
-mv libexec lib
+%setup -q -n %{pname}-%{version}
 
-sed -i 's|libexec|lib|g' install.sh ./lib/bats-core/* ./bin/bats
-sed -i '1s|#!%{_bindir}/env bash|#!/bin/bash|' ./lib/bats-core/* ./bin/bats
+sed -i '1s|#!%{_bindir}/env bash|#!/bin/bash|' ./lib{,exec}/%{pname}/* 
./bin/bats
+%if 0%{?suse_version} <= 1500
+mv -v libexec/%{pname}/* lib/%{pname}/
+sed -i 's|libexec|lib|g' install.sh ./lib/%{pname}/* ./bin/bats
+%endif
 
 %build
 
@@ -58,7 +61,10 @@
 %license LICENSE.md
 %doc README.md
 %{_bindir}/bats
-%{_prefix}/lib/%{name}-core
+%{_prefix}/lib/%{pname}
+%if 0%{?suse_version} > 1500
+%{_libexecdir}/%{pname}
+%endif
 %{_mandir}/man1/bats.1%{?ext_man}
 %{_mandir}/man7/bats.7%{?ext_man}
 

++ v1.2.0.tar.gz -> v1.2.1.tar.gz ++
 4338 lines of diff (skipped)
___
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org