Unverified Commit e00d6256 authored by David Hoeller's avatar David Hoeller Committed by GitHub

Updates unit tests to release 1.2 (#132)

# Description

Updates unit tests to release 1.2

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
parent e75ff988
...@@ -22,9 +22,10 @@ phases: ...@@ -22,9 +22,10 @@ phases:
bash -c ' bash -c '
function retry_scp() { function retry_scp() {
local retries=5 local retries=5
local wait_time=10 local wait_time=30
local count=0 local count=0
while [ $count -lt $retries ]; do while [ $count -lt $retries ]; do
sleep $wait_time
scp -r $SRC_DIR ubuntu@$EC2_INSTANCE_IP:~ scp -r $SRC_DIR ubuntu@$EC2_INSTANCE_IP:~
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "SCP command succeeded" echo "SCP command succeeded"
...@@ -32,7 +33,6 @@ phases: ...@@ -32,7 +33,6 @@ phases:
fi fi
count=$((count + 1)) count=$((count + 1))
echo "SCP command failed. Retrying in $wait_time seconds..." echo "SCP command failed. Retrying in $wait_time seconds..."
sleep $wait_time
done done
echo "SCP command failed after $retries attempts." echo "SCP command failed after $retries attempts."
return 1 return 1
...@@ -41,7 +41,7 @@ phases: ...@@ -41,7 +41,7 @@ phases:
' '
- ssh ubuntu@$EC2_INSTANCE_IP "docker login -u \\\$oauthtoken -p $NGC_TOKEN nvcr.io" - ssh ubuntu@$EC2_INSTANCE_IP "docker login -u \\\$oauthtoken -p $NGC_TOKEN nvcr.io"
- ssh ubuntu@$EC2_INSTANCE_IP "cd $SRC_DIR; - ssh ubuntu@$EC2_INSTANCE_IP "cd $SRC_DIR;
docker build -t isaac-lab-dev --build-arg ISAACSIM_VERSION_ARG=4.2.0 --build-arg ISAACSIM_ROOT_PATH_ARG=/isaac-sim --build-arg ISAACLAB_PATH_ARG=/workspace/isaaclab --build-arg DOCKER_USER_HOME_ARG=/root -f docker/Dockerfile.base . ; DOCKER_BUILDKIT=1 docker build -t isaac-lab-dev --build-arg ISAACSIM_VERSION_ARG=4.2.0 --build-arg ISAACSIM_ROOT_PATH_ARG=/isaac-sim --build-arg ISAACLAB_PATH_ARG=/workspace/isaaclab --build-arg DOCKER_USER_HOME_ARG=/root -f docker/Dockerfile.base . ;
docker run --rm --entrypoint bash --gpus all --network=host --name isaac-lab-test isaac-lab-dev ./isaaclab.sh -t && docker run --rm --entrypoint bash --gpus all --network=host --name isaac-lab-test isaac-lab-dev ./isaaclab.sh -t &&
exit $?" exit $?"
post_build: post_build:
......
...@@ -260,9 +260,9 @@ class TestCamera(unittest.TestCase): ...@@ -260,9 +260,9 @@ class TestCamera(unittest.TestCase):
cam_2.update(self.dt) cam_2.update(self.dt)
# check image sizes # check image sizes
self.assertEqual( self.assertEqual(
cam_1.data.output["distance_to_image_plane"].shape, (1, self.camera_cfg.height, self.camera_cfg.width) cam_1.data.output["distance_to_image_plane"].shape, (1, self.camera_cfg.height, self.camera_cfg.width, 1)
) )
self.assertEqual(cam_2.data.output["distance_to_image_plane"].shape, (1, cam_cfg_2.height, cam_cfg_2.width)) self.assertEqual(cam_2.data.output["distance_to_image_plane"].shape, (1, cam_cfg_2.height, cam_cfg_2.width, 1))
def test_camera_init_intrinsic_matrix(self): def test_camera_init_intrinsic_matrix(self):
"""Test camera initialization from intrinsic matrix.""" """Test camera initialization from intrinsic matrix."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment