[CRIU] [PATCH 2/3] test: remove bashism from Makefile
Andrey Vagin
avagin at openvz.org
Fri Mar 20 01:33:08 PDT 2015
* redirect both stdout and stderr
bash: >& and &>
dash: command > file 2>&1 or command 2>&1 | othercommand
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
test/Makefile.zdtm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/Makefile.zdtm b/test/Makefile.zdtm
index ee39bd6..4bbe0c3 100644
--- a/test/Makefile.zdtm
+++ b/test/Makefile.zdtm
@@ -8,7 +8,7 @@ zdtm_ns_user: $(shell echo "$(TST)" | tr ' ' '\n' | awk '/^ns\/user/ {print}')
zdtm_nons: $(shell echo "$(TST)" | tr ' ' '\n' | awk '!/^ns\// {print}')
$(TST): zdtm_ct mount_cgroups .FORCE
- ./zdtm.sh --ct ${ZDTM_ARGS} -r $(@) &> $(subst /,_,$@).log; \
+ ./zdtm.sh --ct ${ZDTM_ARGS} -r $(@) > $(subst /,_,$@).log 2>&1; \
{ ret=$$?; fname=$(subst /,_,$@).log; flock Makefile cat $$fname; unlink $$fname; exit $$ret; }
mount_cgroups: .FORCE
--
2.1.0
More information about the CRIU
mailing list