Fix nobuild runs of run_net_test.sh without KERNEL_BINARY env var set

This commit sets the default location of KERNEL_BINARY based on the
architechture, and ensures that it is set for --nobuild runs as well.

Test: Ran kernel unit tests
Change-Id: I0db4f3aaab811cc0aec0406f24e4a2506cbe694a
diff --git a/net/test/run_net_test.sh b/net/test/run_net_test.sh
index 84536f0..4ae7705 100755
--- a/net/test/run_net_test.sh
+++ b/net/test/run_net_test.sh
@@ -191,6 +191,14 @@
 
 if [ -n "$KERNEL_BINARY" ]; then
   nobuild=1
+else
+  # Set default KERNEL_BINARY location if it was not provided.
+  if [ "$ARCH" == "um" ]; then
+    KERNEL_BINARY=./linux
+  else
+    # Assume x86_64 bzImage for now
+    KERNEL_BINARY=./arch/x86/boot/bzImage
+  fi
 fi
 
 if ((nobuild == 0)); then
@@ -229,11 +237,8 @@
   # Compile the kernel.
   if [ "$ARCH" == "um" ]; then
     $MAKE -j$J $make_flags linux
-    KERNEL_BINARY=./linux
   else
     $MAKE -j$J $make_flags
-    # Assume x86_64 bzImage for now
-    KERNEL_BINARY=./arch/x86/boot/bzImage
   fi
 fi