microdump_stackwalk_test: fix bashism in test

These are /bin/sh scripts, and `source` is a bash-specific command.
Switch to the portable `.` command instead.

Change-Id: I51d8253b26aa61c130bb5fdc4789f8d623c6d9db
Reviewed-on: https://chromium-review.googlesource.com/414524
Reviewed-by: Primiano Tucci <primiano@chromium.org>
This commit is contained in:
Mike Frysinger 2016-11-23 18:01:18 -05:00
parent 33c24776f3
commit 7515ab1376
4 changed files with 4 additions and 2 deletions

View file

@ -1332,6 +1332,7 @@ EXTRA_DIST = \
src/common/windows/pdb_source_line_writer.h \ src/common/windows/pdb_source_line_writer.h \
src/common/windows/string_utils-inl.h \ src/common/windows/string_utils-inl.h \
src/common/windows/string_utils.cc \ src/common/windows/string_utils.cc \
src/processor/microdump_stackwalk_test_vars \
src/processor/stackwalk_common.cc \ src/processor/stackwalk_common.cc \
src/processor/stackwalk_common.h \ src/processor/stackwalk_common.h \
src/processor/stackwalker_selftest_sol.s \ src/processor/stackwalker_selftest_sol.s \

View file

@ -3183,6 +3183,7 @@ EXTRA_DIST = \
src/common/windows/pdb_source_line_writer.h \ src/common/windows/pdb_source_line_writer.h \
src/common/windows/string_utils-inl.h \ src/common/windows/string_utils-inl.h \
src/common/windows/string_utils.cc \ src/common/windows/string_utils.cc \
src/processor/microdump_stackwalk_test_vars \
src/processor/stackwalk_common.cc \ src/processor/stackwalk_common.cc \
src/processor/stackwalk_common.h \ src/processor/stackwalk_common.h \
src/processor/stackwalker_selftest_sol.s \ src/processor/stackwalker_selftest_sol.s \

View file

@ -29,7 +29,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
source "${0%/*}/microdump_stackwalk_test_vars" # for MICRODUMP_SUPPORTED_ARCHS. . "${0%/*}/microdump_stackwalk_test_vars" || exit 1 # for MICRODUMP_SUPPORTED_ARCHS.
testdata_dir=$srcdir/src/processor/testdata testdata_dir=$srcdir/src/processor/testdata
set -e # Bail out with an error if any of the commands below fails. set -e # Bail out with an error if any of the commands below fails.

View file

@ -29,7 +29,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
source "${0%/*}/microdump_stackwalk_test_vars" # for MICRODUMP_SUPPORTED_ARCHS. . "${0%/*}/microdump_stackwalk_test_vars" || exit 1 # for MICRODUMP_SUPPORTED_ARCHS.
testdata_dir=$srcdir/src/processor/testdata testdata_dir=$srcdir/src/processor/testdata
set -e # Bail out with an error if any of the commands below fails. set -e # Bail out with an error if any of the commands below fails.