All tests are now failing
Created by: VannTen
looks like some of the recent modifications broke something:
1..20
not ok 1 uses xterm -e as the fallback
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 34)
# `assert_output "xterm -e argument"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:00.919815095 +0200
# +++ /dev/fd/62 2023-09-22 10:43:00.919815095 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# xterm -e argument
not ok 2 uses globally configured entry
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 42)
# `assert_output "default terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:01.019815416 +0200
# +++ /dev/fd/62 2023-09-22 10:43:01.019815416 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# default terminal
not ok 3 ignores missing config directory
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 50)
# `assert_output "default terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:01.116482392 +0200
# +++ /dev/fd/62 2023-09-22 10:43:01.116482392 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# default terminal
not ok 4 ignores missing data directory
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 58)
# `assert_output "default terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:01.216482712 +0200
# +++ /dev/fd/62 2023-09-22 10:43:01.219816056 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# default terminal
not ok 5 uses locally configured entry
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 66)
# `assert_output "default terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:01.316483032 +0200
# +++ /dev/fd/62 2023-09-22 10:43:01.316483032 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# default terminal
not ok 6 finds any global entry when there is no configuration
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 73)
# `assert_output "default terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:01.416483352 +0200
# +++ /dev/fd/62 2023-09-22 10:43:01.416483352 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# default terminal
not ok 7 uses configured exec arg
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 80)
# `assert_output "execarg terminal -- argument"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:01.519817016 +0200
# +++ /dev/fd/62 2023-09-22 10:43:01.519817016 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# execarg terminal -- argument
not ok 8 adds default exec arg
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 87)
# `assert_output "default terminal -e argument"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:01.616483992 +0200
# +++ /dev/fd/62 2023-09-22 10:43:01.616483992 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# default terminal -e argument
not ok 9 deals with large desktop entries
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 94)
# `assert_output "huge terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:03.606490353 +0200
# +++ /dev/fd/62 2023-09-22 10:43:03.606490353 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# huge terminal
not ok 10 finds any local entry when there is no configuration
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 101)
# `assert_output "default terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:03.706490672 +0200
# +++ /dev/fd/62 2023-09-22 10:43:03.706490672 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# default terminal
not ok 11 prefers earlier configured entry
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 109)
# `assert_output "preferred terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:03.803157647 +0200
# +++ /dev/fd/62 2023-09-22 10:43:03.803157647 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# preferred terminal
not ok 12 prefers locally configured entry
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 119)
# `assert_output "preferred terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:03.903157966 +0200
# +++ /dev/fd/62 2023-09-22 10:43:03.903157966 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# preferred terminal
not ok 13 ignores hidden entry
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 129)
# `assert_output "default terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:04.039825069 +0200
# +++ /dev/fd/62 2023-09-22 10:43:04.039825069 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# default terminal
not ok 14 ignores entry when its TryExec fails
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 139)
# `assert_output "default terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:04.169825483 +0200
# +++ /dev/fd/62 2023-09-22 10:43:04.169825483 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# default terminal
not ok 15 uses desktop-specific configuration when available
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 150)
# `assert_output "specific terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:04.273159146 +0200
# +++ /dev/fd/62 2023-09-22 10:43:04.273159146 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# specific terminal
not ok 16 uses desktop-agnostic configuration when none is available
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 161)
# `assert_output "generic terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:04.373159465 +0200
# +++ /dev/fd/62 2023-09-22 10:43:04.373159465 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# generic terminal
not ok 17 considers entry when its OnlyShowIn matches
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 172)
# `assert_output "only terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:04.483159815 +0200
# +++ /dev/fd/62 2023-09-22 10:43:04.483159815 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# only terminal
not ok 18 considers entry when its NotShowIn does not match
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 183)
# `assert_output "not terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:04.633160294 +0200
# +++ /dev/fd/62 2023-09-22 10:43:04.633160294 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# not terminal
not ok 19 ignores entry when its NotShowIn matches or its OnlyShowIn does not match
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 194)
# `assert_output "generic terminal"' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:04.813160867 +0200
# +++ /dev/fd/62 2023-09-22 10:43:04.813160867 +0200
# @@ -1 +1,2 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# generic terminal
not ok 20 quotes commands and arguments correctly
# (from function `assert_output' in file test/tests.bats, line 26,
# in test file test/tests.bats, line 202)
# `assert_output <<-'EOF'' failed
# status: 0
# output diff:
# --- /dev/fd/63 2023-09-22 10:43:04.913161185 +0200
# +++ /dev/fd/62 2023-09-22 10:43:04.913161185 +0200
# @@ -1,3 +1,4 @@
# +/build/xdg-terminal-exec-git/src/xdg-terminal-exec/test/../xdg-terminal-exec: line 33: [: : integer expression expected
# |||quoting terminal|||
# |||with 'complex' arguments|||
# |||and \"back\\slashes\"|||