about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-06-29 20:52:21 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-01 23:09:58 -0700
commit5a917623e13ec75ca27cf263046b0f8fbf27560e (patch)
treeeeeead1e0d20983be100a090c463bb7fc8ac1166
parent0fab3deb6c1b9a488dfb8c70fc10d4d67f2b971a (diff)
downloadmu-5a917623e13ec75ca27cf263046b0f8fbf27560e.tar.gz
.
-rwxr-xr-xsubx/run_one_test.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/subx/run_one_test.sh b/subx/run_one_test.sh
index a1aa1016..2d4c332e 100755
--- a/subx/run_one_test.sh
+++ b/subx/run_one_test.sh
@@ -12,12 +12,6 @@ then
 fi
 
 set -e
-if [[ $1 == */* ]]
-then
-  CFLAGS=$CFLAGS subx --debug translate [0-9]*.subx apps/subx-common.subx $1 /tmp/run_one_test.subx -o /tmp/a.elf
-else
-  # don't mention files twice
-  CFLAGS=$CFLAGS subx --debug translate [0-9]*.subx apps/subx-common.subx    /tmp/run_one_test.subx -o /tmp/a.elf
-fi
+CFLAGS=$CFLAGS subx --debug translate `ls [0-9]*.subx apps/subx-common.subx $1 |sort |uniq` /tmp/run_one_test.subx -o /tmp/a.elf
 
 subx --debug --trace run /tmp/a.elf