mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: replace built-in popen
It seems some older bashes have problems to properly execute both pipes - so replace this code with separate temporary files.
This commit is contained in:
parent
e06cfd7437
commit
d9461ae89b
@ -65,7 +65,9 @@ lv_on_diff_() {
|
||||
local diff_e
|
||||
|
||||
# Find diff between 2 shell arrays, print them as stdin files
|
||||
diff_e=$(diff <(printf "%s\n" "${expect[@]}" | sort | uniq ) <(printf "%s\n" "${devs[@]}") ) ||
|
||||
printf "%s\n" "${expect[@]}" | sort | uniq >_lv_on_diff1
|
||||
printf "%s\n" "${devs[@]}" >_lv_on_diff2
|
||||
diff_e=$(diff _lv_on_diff1 _lv_on_diff2) ||
|
||||
die "LV $2/$3 $(lv_err_list_ "^>" "${diff_e}" found)$(lv_err_list_ "^<" "${diff_e}" "not found")."
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user