Skip to content

Commit

Permalink
Fix sed
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Jul 1, 2024
1 parent 9905cdb commit 728ca39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/image.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [[ $1 == "setup" ]]; then
qemu-img resize -f raw "$3" 4G
echo ", +" | sfdisk -N 2 "$3"
imageFile "mount" "$3"
sed -i -e "s|[DATE]|$(date)|" tests/run.exp
sed -i -e "s|DATESED|$(date)|" tests/run.exp
rsync -avr --exclude="*.img" --exclude="*.sig" --exclude="tests/fs" --exclude="tests/dtb" --exclude="tests/kernel" ./ tests/fs/opt/zram
systemd-nspawn --directory="tests/fs" /opt/zram/tests/install-packages.bash
echo "set enable-bracketed-paste off" >> tests/fs/etc/inputrc # Prevents weird character output
Expand Down
2 changes: 1 addition & 1 deletion tests/run.exp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ expect {
exp_continue
}
"pi@raspberrypi:~$ " {
send "sudo date -s \"[DATE]\"\r"
send "sudo date -s \"DATESED\"\r"
}
"Login incorrect" {
exit 1
Expand Down

0 comments on commit 728ca39

Please sign in to comment.