File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed
Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 1616
1717in
1818pkgs . runCommand "jujutsu-test" { } ''
19- "${ jujutsuWrapped } /bin/jj" config list --user | grep -q 'user.name = "Test User"'
20- "${ jujutsuWrapped } /bin/jj" config list --user | grep -q 'user.email = "test@example.com"'
19+ if ! "${ jujutsuWrapped } /bin/jj" config list --user | grep -q 'Test User'; then
20+ echo "failed to list test user!"
21+ echo "wrapper contents for ${ jujutsuWrapped } /bin/jj"
22+ cat "${ jujutsuWrapped } /bin/jj"
23+ exit 1
24+ fi
25+ if ! "${ jujutsuWrapped } /bin/jj" config list --user | grep -q -F 'test@example.com'; then
26+ echo "failed to list test email!"
27+ echo "wrapper contents for ${ jujutsuWrapped } /bin/jj"
28+ cat "${ jujutsuWrapped } /bin/jj"
29+ exit 1
30+ fi
2131 touch $out
2232''
Original file line number Diff line number Diff line change 1818
1919in
2020pkgs . runCommand "mpv-test" { } ''
21- "${ mpvWrapped } /bin/mpv" --version | grep -q "mpv"
22- cat "${ mpvWrapped . configuration . package } /bin/mpv" | grep -q "share/mpv/scripts/visualizer.lua"
21+ if ! "${ mpvWrapped } /bin/mpv" --version | grep -q "mpv"; then
22+ echo "failed to run wrapped package!"
23+ echo "wrapper content for ${ mpvWrapped } /bin/mpv"
24+ cat "${ mpvWrapped } /bin/mpv"
25+ exit 1
26+ fi
27+ if ! cat "${ mpvWrapped . configuration . package } /bin/mpv" | LC_ALL=C grep -a -F -q "share/mpv/scripts/visualizer.lua"; then
28+ echo "failed to find added script when inspecting overriden package value"
29+ echo "overriden package value ${ mpvWrapped . configuration . package } /bin/mpv"
30+ cat "${ mpvWrapped . configuration . package } /bin/mpv"
31+ exit 1
32+ fi
2333 touch $out
2434''
You can’t perform that action at this time.
0 commit comments