uname tends to only give us a valid morph architecture on x86_64,
this makes it work on other architectures.
---
tests.as-root/metadata-includes-morph-version.setup | 2 +-
tests.as-root/metadata-includes-repo-alias.setup | 2 +-
tests.as-root/rootfs-tarball-builds-rootfs-and-kernel.script | 2 +-
tests.as-root/setup | 4 ++--
tests.as-root/system-overlap.script | 2 +-
tests.as-root/tarball-image-is-sensible.setup | 2 +-
tests.branching/setup | 2 +-
tests.build/setup | 2 +-
tests.deploy/setup | 4 ++--
tests.merging/setup | 2 +-
tests/show-dependencies.setup | 2 +-
11 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/tests.as-root/metadata-includes-morph-version.setup
b/tests.as-root/metadata-includes-morph-version.setup
index 31829b0..d7fc96e 100755
--- a/tests.as-root/metadata-includes-morph-version.setup
+++ b/tests.as-root/metadata-includes-morph-version.setup
@@ -27,7 +27,7 @@ cat <<EOF > hello-tarball.morph
{
"name": "hello-tarball",
"kind": "system",
- "arch": "$(uname -m)",
+ "arch": "$("$SRCDIR/scripts/test-morph"
print-architecture)",
"strata": [
{
"morph": "hello-stratum",
diff --git a/tests.as-root/metadata-includes-repo-alias.setup
b/tests.as-root/metadata-includes-repo-alias.setup
index 31829b0..d7fc96e 100755
--- a/tests.as-root/metadata-includes-repo-alias.setup
+++ b/tests.as-root/metadata-includes-repo-alias.setup
@@ -27,7 +27,7 @@ cat <<EOF > hello-tarball.morph
{
"name": "hello-tarball",
"kind": "system",
- "arch": "$(uname -m)",
+ "arch": "$("$SRCDIR/scripts/test-morph"
print-architecture)",
"strata": [
{
"morph": "hello-stratum",
diff --git a/tests.as-root/rootfs-tarball-builds-rootfs-and-kernel.script
b/tests.as-root/rootfs-tarball-builds-rootfs-and-kernel.script
index 20b6150..e082996 100755
--- a/tests.as-root/rootfs-tarball-builds-rootfs-and-kernel.script
+++ b/tests.as-root/rootfs-tarball-builds-rootfs-and-kernel.script
@@ -23,7 +23,7 @@ set -eu
cache="$DATADIR/cache/artifacts"
-arch=$(uname -m)
+arch=$("$SRCDIR/scripts/test-morph" print-architecture)
cd "$DATADIR/kernel-repo"
cat <<EOF >linux.morph
diff --git a/tests.as-root/setup b/tests.as-root/setup
index b865f42..1cf9dd0 100755
--- a/tests.as-root/setup
+++ b/tests.as-root/setup
@@ -132,7 +132,7 @@ git add tools-stratum.morph
cat <<EOF > hello-system.morph
name: hello-system
kind: system
-arch: `uname -m`
+arch: `"$SRCDIR/scripts/test-morph" print-architecture`
strata:
- morph: hello-stratum
EOF
@@ -155,7 +155,7 @@ git add linux-stratum.morph
cat <<EOF > linux-system.morph
name: linux-system
kind: system
-arch: `uname -m`
+arch: `"$SRCDIR/scripts/test-morph" print-architecture`
strata:
- morph: hello-stratum
- morph: linux-stratum
diff --git a/tests.as-root/system-overlap.script b/tests.as-root/system-overlap.script
index c6154e0..1ce8379 100755
--- a/tests.as-root/system-overlap.script
+++ b/tests.as-root/system-overlap.script
@@ -31,7 +31,7 @@ cat <<EOF >overlap-system.morph
{
"name": "overlap-system",
"kind": "system",
- "arch": "$(uname -m)",
+ "arch": "$("$SRCDIR/scripts/test-morph"
print-architecture)",
"strata": [
{
"morph": "foo-baz-stratum",
diff --git a/tests.as-root/tarball-image-is-sensible.setup
b/tests.as-root/tarball-image-is-sensible.setup
index 505707b..c47a533 100755
--- a/tests.as-root/tarball-image-is-sensible.setup
+++ b/tests.as-root/tarball-image-is-sensible.setup
@@ -46,7 +46,7 @@ cat <<EOF > hello-tarball.morph
{
"name": "hello-tarball",
"kind": "system",
- "arch": "$(uname -m)",
+ "arch": "$("$SRCDIR/scripts/test-morph"
print-architecture)",
"strata": [
{
"morph": "link-stratum",
diff --git a/tests.branching/setup b/tests.branching/setup
index 06a05e9..22c51c2 100755
--- a/tests.branching/setup
+++ b/tests.branching/setup
@@ -50,7 +50,7 @@ ln -s "$DATADIR/morphs" "$DATADIR/morphs.git"
cat <<EOF > "$DATADIR/morphs/hello-system.morph"
name: hello-system
kind: system
-arch: $(uname -m)
+arch: $("$SRCDIR/scripts/test-morph" print-architecture)
strata:
- morph: hello-stratum
EOF
diff --git a/tests.build/setup b/tests.build/setup
index 8b1dfd0..559825b 100755
--- a/tests.build/setup
+++ b/tests.build/setup
@@ -107,7 +107,7 @@ cat <<EOF > hello-system.morph
{
"name": "hello-system",
"kind": "system",
- "arch": "$(uname -m)",
+ "arch": "$("$SRCDIR/scripts/test-morph"
print-architecture)",
"strata": [
{
"morph": "hello-stratum",
diff --git a/tests.deploy/setup b/tests.deploy/setup
index 5fbe026..ece8819 100755
--- a/tests.deploy/setup
+++ b/tests.deploy/setup
@@ -112,7 +112,7 @@ cat <<EOF > hello-system.morph
{
"name": "hello-system",
"kind": "system",
- "arch": "$(uname -m)",
+ "arch": "$("$SRCDIR/scripts/test-morph"
print-architecture)",
"strata": [
{
"morph": "hello-stratum",
@@ -148,7 +148,7 @@ cat <<EOF > linux-system.morph
{
"name": "linux-system",
"kind": "system",
- "arch": "$(uname -m)",
+ "arch": "$("$SRCDIR/scripts/test-morph"
print-architecture)",
"strata": [
{
"morph": "hello-stratum",
diff --git a/tests.merging/setup b/tests.merging/setup
index 411fc45..77b8beb 100755
--- a/tests.merging/setup
+++ b/tests.merging/setup
@@ -51,7 +51,7 @@ cat <<EOF > "$DATADIR/morphs/hello-system.morph"
{
"name": "hello-system",
"kind": "system",
- "arch": "$(uname -m)",
+ "arch": "$("$SRCDIR/scripts/test-morph"
print-architecture)",
"strata": [
{
"morph": "hello-stratum",
diff --git a/tests/show-dependencies.setup b/tests/show-dependencies.setup
index e1cc71a..510656e 100755
--- a/tests/show-dependencies.setup
+++ b/tests/show-dependencies.setup
@@ -347,7 +347,7 @@ cat <<EOF > xfce-system.morph
{
"name": "xfce-system",
"kind": "system",
- "arch": "$(uname -m)",
+ "arch": "$("$SRCDIR/scripts/test-morph"
print-architecture)",
"strata": [
{
"build-mode": "test",
--
1.8.5.rc2