From: Paul E. McKenney Date: Fri, 28 Feb 2014 04:26:57 +0000 (-0800) Subject: torture: Make "--dryrun script" use same environment as normal run X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~26^2^2~2^3~26 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14d9d84c9e9b54e02ea69ab5cb6e2114f3639160;p=pandora-kernel.git torture: Make "--dryrun script" use same environment as normal run In a normal torture-test run, the script inherits its environment variables, but this does not work when producing a script that is to run later. Therefore, definitions and exports are prepended to a dryrun script but not to a script that is run immediately. This commit reconciles this by placing definitions and exports at the beginning of the script in both cases. Signed-off-by: Paul E. McKenney Reviewed-by: Josh Triplett Conflicts: tools/testing/selftests/rcutorture/bin/kvm.sh --- Reading git-diff-tree failed