mirror of
https://github.com/tests-always-included/mo.git
synced 2025-11-19 23:34:32 +01:00
Fix exit code when partial file not found
This commit is contained in:
1
tests/partial-missing.expected
Normal file
1
tests/partial-missing.expected
Normal file
@@ -0,0 +1 @@
|
||||
cat: partial-missing.partial: No such file or directory
|
||||
8
tests/partial-missing.sh
Executable file
8
tests/partial-missing.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd "${0%/*}"
|
||||
../mo partial-missing.template 2>&1
|
||||
|
||||
if [[ $? -ne 1 ]]; then
|
||||
echo "Did not return 1"
|
||||
fi
|
||||
1
tests/partial-missing.template
Normal file
1
tests/partial-missing.template
Normal file
@@ -0,0 +1 @@
|
||||
Won't be there: {{> partial-missing.partial}}
|
||||
Reference in New Issue
Block a user